[LLVMbugs] [Bug 10731] New: Codegenerator inserts bitcast before landingpad instruction, causing verifier failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 24 07:30:49 PDT 2011


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

           Summary: Codegenerator inserts bitcast before landingpad
                    instruction, causing verifier failure
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7117)
 --> (http://llvm.org/bugs/attachment.cgi?id=7117)
testcase .ll

The attached IR verifies OK, but the code generators introduce changes that
cause
the verifier to reject it (the code generators insert a bitcast between a phi
node and the landingpad instruction):

$ opt -verify bitcast-insert.ll -disable-output
$ llc bitcast-insert.ll
LandingPadInst not the first non-PHI instruction in the block.
  %2 = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)*
@__gxx_personality_v0
          cleanup
Broken module found, compilation aborted!

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