[LLVMbugs] [Bug 7700] bugpoint crashes with Unknown constant!...BitcodeWriter.cpp:905

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 24 13:57:41 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7700

Nick Lewycky <nicholas at mxc.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
         AssignedTo|unassignedbugs at nondot.org   |dpatel at apple.com

--- Comment #1 from Nick Lewycky <nicholas at mxc.ca> 2010-07-24 15:57:41 CDT ---
This bug is caused by the Module cloner failing to clone the MDNode when it
contains a reference to a Function in the old module. It should create a new
MDNode which refers to the new Function in the new module.

Revision 109353 tried to do that, but we encountered a cyclic MDNode when
building llvm-gcc (compiling src/gcc/libgcc2.c with xgcc to produce
_udivdi3.o). The cloner makes no attempt to deal with cyclic MDNodes and I
don't see how to do it.

Devang, please teach the cloner to handle this case, or if that shouldn't be
happening, find out why it is in the llvm-gcc build. Thanks!

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list