diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-07-08 23:57:03 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-07-08 23:57:03 +0000 |
commit | e7844ea7f86127a21686e2392da55ffa533d83dd (patch) | |
tree | cb6265c671b0e911acf64d14a01e94c5d0ddabaa /clang/lib/CodeGen/CGException.cpp | |
parent | 13194461958672e09a4b0608186c7793a6aaf241 (diff) | |
download | bcm5719-llvm-e7844ea7f86127a21686e2392da55ffa533d83dd.tar.gz bcm5719-llvm-e7844ea7f86127a21686e2392da55ffa533d83dd.zip |
Disable 32-bit SEH, again
Move the diagnostic back to codegen so that we can compile ATL on the
self-host bot. We don't actually end up emitting code for the __try, so
the diagnostic won't be hit.
llvm-svn: 241761
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 987ffc14a45..c7e3ed5c348 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1280,6 +1280,10 @@ llvm::BasicBlock *CodeGenFunction::getEHResumeBlock(bool isCleanup) { } void CodeGenFunction::EmitSEHTryStmt(const SEHTryStmt &S) { + // Reject __try on unsupported targets. + if (!getContext().getTargetInfo().isSEHTrySupported()) + ErrorUnsupported(&S, "SEH '__try' on this target"); + EnterSEHTryStmt(S); { JumpDest TryExit = getJumpDestInCurrentScope("__try.__leave"); |