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

           Summary: scalarrepl crash on i1 store
           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 -scalarrepl testcase.bc
opt: llvm/lib/VMCore/Instructions.cpp:2356:
llvm::TruncInst::TruncInst(llvm::Value*, const llvm::Type*, const std::string&,
llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal
Trunc"' failed.

Here's the testcase:

        %wrapper = type { i1 }

define void @f() {
entry:
        %w = alloca %wrapper, align 8           ; <%wrapper*> [#uses=1]
        %0 = getelementptr %wrapper* %w, i64 0, i32 0           ; <i1*>
[#uses=1]
        store i1 true, i1* %0
        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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to