diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-09-18 21:48:27 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-09-18 21:48:27 +0000 |
commit | 8b3c99e0167e0565905e1b05de2b8536d8e80d27 (patch) | |
tree | 9b39cfbb19904287823311451a363348d33a654d /lib/Sema/JumpDiagnostics.cpp | |
parent | 1c98d627e5f0b79365d4e64cd4c6795ebed895f3 (diff) |
Move the "jump bypasses variable initialization" error -> warning downgrade from -fms-extensions to -fms-compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/JumpDiagnostics.cpp')
-rw-r--r-- | lib/Sema/JumpDiagnostics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/JumpDiagnostics.cpp b/lib/Sema/JumpDiagnostics.cpp index 40e8bcb247..3e74dfccbd 100644 --- a/lib/Sema/JumpDiagnostics.cpp +++ b/lib/Sema/JumpDiagnostics.cpp @@ -694,7 +694,7 @@ void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, SmallVector<unsigned, 10> ToScopesError; SmallVector<unsigned, 10> ToScopesWarning; for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { - if (S.getLangOptions().MicrosoftExt && JumpDiagWarning != 0 && + if (S.getLangOptions().MicrosoftMode && JumpDiagWarning != 0 && IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag)) ToScopesWarning.push_back(I); else if (Scopes[I].InDiag) |