forked from OSchip/llvm-project
parent
deb5e728ae
commit
58efb8e2bb
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue