[LLVMbugs] [Bug 4146] New: scalarrepl crash on i1 store
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon May 4 01:29:07 PDT 2009
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: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
$ 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.
More information about the llvm-bugs
mailing list