summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-07-08 23:57:03 +0000
committerReid Kleckner <reid@kleckner.net>2015-07-08 23:57:03 +0000
commite7844ea7f86127a21686e2392da55ffa533d83dd (patch)
treecb6265c671b0e911acf64d14a01e94c5d0ddabaa /clang/lib/CodeGen/CGException.cpp
parent13194461958672e09a4b0608186c7793a6aaf241 (diff)
downloadbcm5719-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.cpp4
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");
OpenPOWER on IntegriCloud