diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-02 22:15:31 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-02 22:15:31 +0000 |
commit | e71759103e72dae502775ce97c97c3d2bd3ef8c2 (patch) | |
tree | 1031be7199deeb41bab0cb7f7825efb1de2ca4ad /clang/lib/Sema/ScopeInfo.cpp | |
parent | 78b7d5fab22e2be356b80c6b01a2cc498fb9123c (diff) | |
download | bcm5719-llvm-e71759103e72dae502775ce97c97c3d2bd3ef8c2.tar.gz bcm5719-llvm-e71759103e72dae502775ce97c97c3d2bd3ef8c2.zip |
SEH: Diagnose use of C++ EH and SEH in the same function
This check does not apply when Borland extensions are enabled, as they
have a checked in test case indicating that mixed usage of SEH and C++
is supported.
llvm-svn: 227876
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r-- | clang/lib/Sema/ScopeInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index 63ef3b2355f..f80eadf18d5 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -33,6 +33,8 @@ void FunctionScopeInfo::Clear() { ObjCWarnForNoDesignatedInitChain = false; ObjCIsSecondaryInit = false; ObjCWarnForNoInitDelegation = false; + FirstCXXTryLoc = SourceLocation(); + FirstSEHTryLoc = SourceLocation(); SwitchStack.clear(); Returns.clear(); |