summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-18 19:50:02 +0000
committerChris Lattner <sabre@nondot.org>2009-04-18 19:50:02 +0000
commit36dec99d1244d1c9b01ba0f8df2adc4c1e54a6c7 (patch)
treef8b7e1df21c9ec57ca55c4e0de7e8645be4cf3c2 /clang/lib/Sema/SemaStmt.cpp
parent7535f41c6673613009a22e2b2e9654d6f5eba40e (diff)
downloadbcm5719-llvm-36dec99d1244d1c9b01ba0f8df2adc4c1e54a6c7.tar.gz
bcm5719-llvm-36dec99d1244d1c9b01ba0f8df2adc4c1e54a6c7.zip
Improve switch diagnostic to emit the "jump" message on the
specific bad case instead of on the switch. Putting it on the switch means you don't know what case is the problem. For example: scope-check.c:54:3: error: illegal switch case into protected scope case 2: ^ scope-check.c:53:9: note: jump bypasses initialization of variable length array int a[x]; ^ llvm-svn: 69462
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud