summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index c0dba128beb..ad2409b802d 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -994,6 +994,9 @@ bool ScopDetection::isValidInstruction(Instruction &Inst,
return false;
}
+ if (isa<LandingPadInst>(&Inst) || isa<ResumeInst>(&Inst))
+ return false;
+
// We only check the call instruction but not invoke instruction.
if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
if (isValidCallInst(*CI, Context))
OpenPOWER on IntegriCloud