Oh, BTW it worked!!<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 4:00 PM, George Baah <span dir="ltr"><<a href="mailto:georgebaah@gmail.com">georgebaah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you very much guys, I really appreciate your help.<div><br></div><div><font color="#888888">George</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 3:58 PM, Frits van Bommel <span dir="ltr"><<a href="mailto:fvbommel@gmail.com" target="_blank">fvbommel@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Mar 31, 2011 at 9:57 PM, George Baah <<a href="mailto:georgebaah@gmail.com" target="_blank">georgebaah@gmail.com</a>> wrote:<br>


> I did M.getOrInsertFunction and called the exit function with .<br>
><br>
> IRBuilder<> builder = IRBuilder<>(...);<br>
><br>
> Value *one = ConstantInt::get(Type::getInt32Ty(M.getContext()),1);<br>
><br>
> builder.CreateCall(exitF,one,"tmp4");<br>
><br>
> "Instruction has a name, but provides a void value!<br>
>   %tmp4 = call void @exit(i32 1)<br>
> Broken module found, compilation aborted! "<br>
<br>
</div>So... don't give the call a name? (just remove the "tmp4" parameter)<br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>