diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-11 00:00:21 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-11 00:00:21 +0000 |
commit | e7b3f7c70d31ec34534586d2259868639c8fe175 (patch) | |
tree | 04a1e1b29f8becd64cbe2d4f0d6d3461b30de174 /clang/lib/CodeGen/CGException.cpp | |
parent | be6d1e49b0c58b5a28f0c8ca1e536c1157ca5666 (diff) | |
download | bcm5719-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.cpp | 3 |
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; } |