summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-09 08:40:10 +0000
committerAlp Toker <alp@nuanti.com>2014-05-09 08:40:10 +0000
commite265cf1a33f5b06fdc234bb801f20434c30c17d0 (patch)
tree4cb0ac2013474a6c806ff9b89f2c20a6be2d0806 /clang/lib/Sema/SemaDecl.cpp
parent370d5f808a0c83aa9700373f54d07b6898bd5ddd (diff)
downloadbcm5719-llvm-e265cf1a33f5b06fdc234bb801f20434c30c17d0.tar.gz
bcm5719-llvm-e265cf1a33f5b06fdc234bb801f20434c30c17d0.zip
Add support for partial jump scope checking
This lets us diagnose and perform more complete semantic analysis when faced with errors in the function body or declaration. By recovering here we provide more consistent diagnostics, particularly during interactive editing. llvm-svn: 208394
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 0d448e0aa87..0ffce40e1ea 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -9997,8 +9997,6 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
// Verify that gotos and switch cases don't jump into scopes illegally.
if (getCurFunction()->NeedsScopeChecking() &&
- !dcl->isInvalidDecl() &&
- !hasAnyUnrecoverableErrorsInThisFunction() &&
!PP.isCodeCompletionEnabled())
DiagnoseInvalidJumps(Body);
OpenPOWER on IntegriCloud