summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-02-11 00:00:21 +0000
committerReid Kleckner <reid@kleckner.net>2015-02-11 00:00:21 +0000
commite7b3f7c70d31ec34534586d2259868639c8fe175 (patch)
tree04a1e1b29f8becd64cbe2d4f0d6d3461b30de174 /clang/lib/CodeGen/CGException.cpp
parentbe6d1e49b0c58b5a28f0c8ca1e536c1157ca5666 (diff)
downloadbcm5719-llvm-e7b3f7c70d31ec34534586d2259868639c8fe175.tar.gz
bcm5719-llvm-e7b3f7c70d31ec34534586d2259868639c8fe175.zip
Emit landing pads for SEH even if nounwind is present
Disabling exceptions applies nounwind to lots of functions. SEH catches asynch exceptions, so emit the landing pad anyway. llvm-svn: 228769
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 5ddd3bbb82b..a632a40e14a 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -743,8 +743,7 @@ llvm::BasicBlock *CodeGenFunction::getInvokeDestImpl() {
if (!LO.Exceptions) {
if (!LO.Borland && !LO.MicrosoftExt)
return nullptr;
- const auto *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl);
- if (!FD || !FD->usesSEHTry())
+ if (!currentFunctionUsesSEHTry())
return nullptr;
}
OpenPOWER on IntegriCloud