]> granicus.if.org Git - clang/commit
Make sure that we always pop a function's scope *before* we call
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 Mar 2011 17:05:57 +0000 (17:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 Mar 2011 17:05:57 +0000 (17:05 +0000)
commitc9977d09a2de7f7d2245973413d4caf86c736640
tree96f62846c27d60cf053f957dcfc32c0bbd575e71
parent250e7a74d5a23db5bd7202ecb0bb4a8fef6016b4
Make sure that we always pop a function's scope *before* we call
ActOnFinishFunctionBody/ActOnBlockStmtExpr. This way, we ensure that
we diagnose undefined labels before the jump-scope checker gets run,
since the jump-scope checker requires (as its invariant) that all of
the GotoStmts be wired up correctly.

Fixes PR9495.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127738 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/Parser.cpp
test/SemaCXX/goto.cpp
test/SemaObjCXX/goto.mm [new file with mode: 0644]