From e71759103e72dae502775ce97c97c3d2bd3ef8c2 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 2 Feb 2015 22:15:31 +0000 Subject: 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 --- clang/lib/Sema/ScopeInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Sema/ScopeInfo.cpp') 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(); -- cgit v1.2.3