diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
commit | 1b98ccc4e9576e86fb3e235bac3076472a84f875 (patch) | |
tree | 2a47686d41ac218fd7c65dea3321790f383a15e1 /clang/lib/Sema/JumpDiagnostics.cpp | |
parent | c4e00289a78116aefc8db41979d747ab27c4bd44 (diff) | |
download | bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.tar.gz bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.zip |
PR20356: Fix all Sema warnings with mismatched ext_/warn_ versus
ExtWarn/Warnings. Mostly the name of the warning was changed to match the
semantics, but in the PR20356 cases, the warning was about valid code, so the
diagnostic was changed from ExtWarn to Warning instead.
llvm-svn: 213443
Diffstat (limited to 'clang/lib/Sema/JumpDiagnostics.cpp')
-rw-r--r-- | clang/lib/Sema/JumpDiagnostics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp index f7d87882382..255845282df 100644 --- a/clang/lib/Sema/JumpDiagnostics.cpp +++ b/clang/lib/Sema/JumpDiagnostics.cpp @@ -491,7 +491,7 @@ void JumpScopeChecker::VerifyJumps() { if (GotoStmt *GS = dyn_cast<GotoStmt>(Jump)) { CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), diag::err_goto_into_protected_scope, - diag::warn_goto_into_protected_scope, + diag::ext_goto_into_protected_scope, diag::warn_cxx98_compat_goto_into_protected_scope); continue; } @@ -501,7 +501,7 @@ void JumpScopeChecker::VerifyJumps() { LabelDecl *Target = IGS->getConstantTarget(); CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), diag::err_goto_into_protected_scope, - diag::warn_goto_into_protected_scope, + diag::ext_goto_into_protected_scope, diag::warn_cxx98_compat_goto_into_protected_scope); continue; } |