[LLVMbugs] [Bug 10565] New: scalarrepl assertion failure: Invalid cast!
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 2 05:00:14 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10565
Summary: scalarrepl assertion failure: Invalid cast!
Product: new-bugs
Version: 2.9
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=7001)
--> (http://llvm.org/bugs/attachment.cgi?id=7001)
testcase .ll
$ opt -scalarrepl pr19108.ll -o /dev/null
opt: llvm/lib/VMCore/Instructions.cpp:2065: static llvm::CastInst*
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) &&
"Invalid cast!"' failed.
...
6 opt 0x0000000000cc3511
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&, llvm::Instruction*) + 87
7 opt 0x0000000000916375 llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateCast(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, llvm::Twine const&) + 179
8 opt 0x0000000000914118 llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateBitCast(llvm::Value*,
llvm::Type*, llvm::Twine const&) + 56
...
15 opt 0x0000000000ce537f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 431
16 opt 0x0000000000ce55be llvm::FPPassManager::runOnModule(llvm::Module&)
+ 102
17 opt 0x0000000000ce58ee llvm::MPPassManager::runOnModule(llvm::Module&)
+ 456
18 opt 0x0000000000ce5de0 llvm::PassManagerImpl::run(llvm::Module&) + 130
19 opt 0x0000000000ce61e7 llvm::PassManager::run(llvm::Module&) + 39
20 opt 0x00000000008772f0 main + 4518
21 libc.so.6 0x00007f894ac7ae1f __libc_start_main + 255
22 opt 0x00000000008686d9
Stack dump:
0. Program arguments: opt -scalarrepl pr19108.ll -o /dev/null
1. Running pass 'Function Pass Manager' on module 'pr19108.ll'.
2. Running pass 'Scalar Replacement of Aggregates (DT)' on function
'@_GLOBAL__sub_I_b'
Aborted (core dumped)
--
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