diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-11-17 22:11:07 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-11-17 22:11:07 +0000 |
commit | b7698745e9fa60157a6ac454d12e6820fbaba671 (patch) | |
tree | 1df41c773ab22116d4a278d35caa3d7c428701d3 /clang/lib | |
parent | 1019695b38bf65ad7d54faa62466cc7b67267aea (diff) | |
download | bcm5719-llvm-b7698745e9fa60157a6ac454d12e6820fbaba671.tar.gz bcm5719-llvm-b7698745e9fa60157a6ac454d12e6820fbaba671.zip |
CodeGen: make a check stricter
When targeting Windows itanium (a MSVC environment), use itanium style
exceptions rather than SEH. Existing test cases already test this code path.
Applying this change ensures that tests wont break due to a parallel change in
LLVM (to correctly report isMSVCEnvironment).
llvm-svn: 222179
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 2e8f1ed976f..b147b436bfb 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -425,7 +425,7 @@ llvm::Value *CodeGenFunction::getSelectorFromSlot() { void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E, bool KeepInsertionPoint) { - if (CGM.getTarget().getTriple().isWindowsMSVCEnvironment()) { + if (CGM.getTarget().getTriple().isKnownWindowsMSVCEnvironment()) { ErrorUnsupported(E, "throw expression"); return; } @@ -597,7 +597,7 @@ void CodeGenFunction::EmitEndEHSpec(const Decl *D) { } void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) { - if (CGM.getTarget().getTriple().isWindowsMSVCEnvironment()) { + if (CGM.getTarget().getTriple().isKnownWindowsMSVCEnvironment()) { ErrorUnsupported(&S, "try statement"); return; } |