diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-03-16 17:05:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-03-16 17:05:57 +0000 |
commit | a0ff0c34a71a24c2b65f257ab59976a902c63982 (patch) | |
tree | ef2c07fe2c5cf2c661a033d53a4d0c5f05dc7329 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 46c04e74fba75b9b670834e61dec85db87068fb9 (diff) | |
download | bcm5719-llvm-a0ff0c34a71a24c2b65f257ab59976a902c63982.tar.gz bcm5719-llvm-a0ff0c34a71a24c2b65f257ab59976a902c63982.zip |
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.
llvm-svn: 127738
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions