Displaying 3 results from an estimated 3 matches for "39ec34b2".
2013 Dec 03
0
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
On Tue, Dec 3, 2013 at 2:29 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> Hi,
>
> I am trying to print two strings using printf. I have tried various
> things, but keep getting this error:
>
> llc: printf.ll:4:11: error: '@printf' defined with type 'i32 (i8*,
> ...)*'
> %1 = call i32 @printf(i8* null, i8*, i8* null)
>
> The
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
Hi,
I am trying to print two strings using printf. I have tried various
things, but keep getting this error:
llc: printf.ll:4:11: error: '@printf' defined with type 'i32 (i8*,
...)*'
%1 = call i32 @printf(i8* null, i8*, i8* null)
The code is:
declare i32 @printf(i8* nocapture readonly, ...) nounwind
define i32 @main() nounwind {
%1 = call i32
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
...t;
>>
> You're missing the cast, IMHO. The cast appeases the LLVM type checker
> w.r.t. mismatching function type
>
> Eli
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131203/39ec34b2/attachment.html>