Displaying 1 result from an estimated 1 matches for "isdeftriviallydead".
2012 Aug 29
0
[LLVMdev] How to require ScalarEvolution analysis in a Module pass?
...0,7 @@
if (!F->hasName() && !F->isDeclaration())
F->setLinkage(GlobalValue::InternalLinkage);
F->removeDeadConstantUsers();
+ ScalarEvolution *SE = &getAnalysis<ScalarEvolution>(*F);
------------------------------------> CRASH here:
if (F->isDefTriviallyDead()) {
F->eraseFromParent();
Changed = true;
4. core dump
#0 0x000000386de30265 in raise () from /lib64/libc.so.6
#1 0x000000386de31d10 in abort () from /lib64/libc.so.6
#2 0x000000386de296e6 in __assert_fail () from /lib64/libc.so.6
#3 0x000000000058dbe1 in llvm::Pass::getAnaly...