[LLVMbugs] [Bug 11880] Compiler crash on compiling (faulty?) IR

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 16 15:36:53 PDT 2012


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

Benjamin Kramer <benny.kra at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |benny.kra at gmail.com
         Resolution|                            |FIXED

--- Comment #5 from Benjamin Kramer <benny.kra at gmail.com> 2012-03-16 17:36:53 CDT ---
Looks like we were chasing the wrong problem here, the bug isn't that the IR
verifier doesn't run. The IR parser catches the mistake in the IR just fine,
but clang failed to display the string and crashed.

r152956 fixes the bug in clang.

$ clang -c x.ll
x.ll:22:45: error: '%1' defined with type '%struct.str*'
    %2 = getelementptr inbounds %struct.str %1, i32 1
                                            ^

-- 
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