summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-10-08 01:13:52 +0000
committerReid Kleckner <rnk@google.com>2015-10-08 01:13:52 +0000
commit129552b3757fa15f5e2f8ead1b1e24684f183574 (patch)
treecb282daf5ede313fa6aa705d7ff6a555dda7f42a /clang/lib/CodeGen/CGCleanup.cpp
parent3b804877fd7e3270b1c53f1de9adce5fb0cbd380 (diff)
downloadbcm5719-llvm-129552b3757fa15f5e2f8ead1b1e24684f183574.tar.gz
bcm5719-llvm-129552b3757fa15f5e2f8ead1b1e24684f183574.zip
[WinEH] Remove NewMSEH and enable its behavior by default
Testing has shown that it is at least as reliable as the old landingpad pattern matching code. llvm-svn: 249647
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 31c870ff6f6..5796320894b 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -933,8 +933,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
EmitBlock(EHEntry);
llvm::CleanupPadInst *CPI = nullptr;
llvm::BasicBlock *NextAction = getEHDispatchBlock(EHParent);
- if (CGM.getCodeGenOpts().NewMSEH &&
- EHPersonality::get(*this).isMSVCPersonality())
+ if (EHPersonality::get(*this).usesFuncletPads())
CPI = Builder.CreateCleanupPad({});
// We only actually emit the cleanup code if the cleanup is either
OpenPOWER on IntegriCloud