A landingpad instruction is neither folded nor dead.

llvm-svn: 138387
This commit is contained in:
Bill Wendling 2011-08-23 21:33:05 +00:00
parent 51b554247d
commit 4eb0433672
1 changed files with 1 additions and 0 deletions

View File

@ -808,6 +808,7 @@ static bool isFoldedOrDeadInstruction(const Instruction *I,
return !I->mayWriteToMemory() && // Side-effecting instructions aren't folded.
!isa<TerminatorInst>(I) && // Terminators aren't folded.
!isa<DbgInfoIntrinsic>(I) && // Debug instructions aren't folded.
!isa<LandingPadInst>(I) && // Landingpad instructions aren't folded.
!FuncInfo->isExportedInst(I); // Exported instrs must be computed.
}