forked from OSchip/llvm-project
revert r159440. As Duncan pointed out, the test for invoke is not needed at this point
llvm-svn: 159471
This commit is contained in:
parent
b1b3db6802
commit
7b12b87096
|
@ -265,8 +265,7 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
|
|||
return isa<UndefValue>(II->getArgOperand(1));
|
||||
}
|
||||
|
||||
if (isAllocLikeFn(I))
|
||||
return isa<CallInst>(I); // do not mess around with invoke here
|
||||
if (isAllocLikeFn(I)) return true;
|
||||
|
||||
if (CallInst *CI = isFreeCall(I))
|
||||
if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
|
||||
|
|
Loading…
Reference in New Issue