]> granicus.if.org Git - clang/commit
unconditionally check for goto correctness. This is because switch
authorChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 21:00:42 +0000 (21:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 21:00:42 +0000 (21:00 +0000)
commitb56593725243becfe2685f39eec47406299801ae
treef3325a84c54d45c9beee44760b7466b28ca04eea
parent131038e2125d98f1be0d9cb62561a7cede41bb44
unconditionally check for goto correctness.  This is because switch
statements don't end up in the LabelMap so we don't have a quick way
to filter them.  We could add state to Sema (a "has vla" and "has
jump" bit) to try to filter this out, but that would be sort of gross
and I'm not convinced it is the best way.  Thoughts welcome.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69476 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/scope-check.c