llvm-svn: 104218
This commit is contained in:
John McCall 2010-05-20 07:13:26 +00:00
parent deb5e728ae
commit 58efb8e2bb
1 changed files with 1 additions and 1 deletions

View File

@ -4694,7 +4694,7 @@ Sema::DeclPtrTy Sema::ActOnFinishFunctionBody(DeclPtrTy D, StmtArg BodyArg,
// Verify that that gotos and switch cases don't jump into scopes illegally.
// Verify that that gotos and switch cases don't jump into scopes illegally.
if (FunctionNeedsScopeChecking() &&
!FD->isInvalidDecl() &&
!dcl->isInvalidDecl() &&
!hasAnyErrorsInThisFunction())
DiagnoseInvalidJumps(Body);