[LLVMbugs] [Bug 8680] New: scalarrepl crash on alloca that is bitcast to a function pointer and then called

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 24 07:15:49 PST 2010


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

           Summary: scalarrepl crash on alloca that is bitcast to a
                    function pointer and then called
           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


Run "opt -scalarrepl" on the following to enjoy the crash:

target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"

define void @main() nounwind {
entry:
  %memtmp = alloca i32, align 4
  %0 = bitcast i32* %memtmp to void ()*
  call void %0() nounwind
  ret void
}

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