Thank you very much guys, I really appreciate your help.<div><br></div><div>George<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">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 class="im">On Thu, Mar 31, 2011 at 9:57 PM, George Baah <<a href="mailto:georgebaah@gmail.com">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>