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

           Summary: Jump threading creates blockaddress of entry block
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ opt -jump-threading baddress.ll -disable-output
blockaddress may not be used with the entry block!
label %"17"
Broken module found, compilation aborted!


This is a recent regression.  Testcase reduced from linux kernel module
handling code.

define void @module_add_modinfo_attrs() nounwind {
entry:
  br label %"17"

"17":                                             ; preds = %entry
  call void undef(i64 ptrtoint (i8* blockaddress(@module_add_modinfo_attrs,
%"17") to i64), i8* undef, i64 384, i64 undef, i32 32976) nounwind
  unreachable
}


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to