Thanks Duncan.<br><br>After adding the verifier, it gives me:<br><br>Broken module found, verification continues.<br>Referencing function in another module!<br><br>And I fixed my code based on this.<br><br>Thanks,<br>Guoliang<br>
<br><div class="gmail_quote">On Wed, Sep 22, 2010 at 6:10 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Guoliang,<br>
<div><br>
> I added a function to a module, but failed to write the bitcode to file<br>
> because it hit the:<br>
> assert(I != ValueMap.end()&& "Value not in slotcalculator!")<br>
<br>
</div>does the module pass the verifier after you add the function to it?<br>
<br>
Ciao,<br>
<br>
Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>