Displaying 3 results from an estimated 3 matches for "f94e03db".
2013 Dec 03
0
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
This code:
declare i32 @printf(i8* nocapture readonly, ...) nounwind
define i32 @bar(i8* %c, i32 %i) #0 {
entry:
%call = tail call i32 (i8*, ...)* @printf(i8* %c, i8* %c)
ret i32 %call
}
Is accepted without complaints by close-to-trunk llc on my Ubuntu machine.
Eli
On Tue, Dec 3, 2013 at 2:58 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> I just tried adding the cast but
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
I just tried adding the cast but it didn't help. I have the feeling that I
am overlooking something very obvious, but I can't seem to figure out what
it is. Thanks for your suggestion, though.
-- Mikael
2013/12/3 Eli Bendersky <eliben at google.com>
>
>
>
> On Tue, Dec 3, 2013 at 2:29 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
>
>> Hi,
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
...peases 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/20131204/f94e03db/attachment.html>