summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2015-08-23 00:26:48 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2015-08-23 00:26:48 +0000
commitce536a596b745c4d2b8ac9b9fcdd91426f8562a8 (patch)
tree6a90ce1d4ebe29ea9bf343f739d6b4c9eb1f31e7 /clang/lib/CodeGen/CGCleanup.cpp
parent8220bcc5700305452e823ad2d37d769f8f15a497 (diff)
downloadbcm5719-llvm-ce536a596b745c4d2b8ac9b9fcdd91426f8562a8.tar.gz
bcm5719-llvm-ce536a596b745c4d2b8ac9b9fcdd91426f8562a8.zip
[WinEH] Update to new EH pad/ret signatures (with tokens required)
Summary: The signatures of the methods in LLVM for creating EH pads/rets are changing to require token arguments on rets and assume token return type on pads. Update creation code accordingly. Reviewers: majnemer, rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12109 llvm-svn: 245798
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index e53793d489b..95d2914df93 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -904,8 +904,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
llvm::BasicBlock *NextAction = getEHDispatchBlock(EHParent);
if (CGM.getCodeGenOpts().NewMSEH &&
EHPersonality::get(*this).isMSVCPersonality())
- CPI = Builder.CreateCleanupPad(llvm::Type::getTokenTy(getLLVMContext()),
- {});
+ CPI = Builder.CreateCleanupPad({});
// We only actually emit the cleanup code if the cleanup is either
// active or was used before it was deactivated.
@@ -916,7 +915,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
}
if (CPI)
- Builder.CreateCleanupRet(NextAction, CPI);
+ Builder.CreateCleanupRet(CPI, NextAction);
else
Builder.CreateBr(NextAction);
OpenPOWER on IntegriCloud