commit | a9768b72bb5ea061c9f10d6aa51b3be3241f3ec2 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Apr 18 19:50:02 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Apr 18 19:50:02 2009 +0000 |
tree | eb0fb2af4a830253c6725bd7c9aa4ee308ccff65 | |
parent | 366920a45e3e278d35cbc3bc74d9d0676ae87dfe [diff] |
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]; ^ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69462 91177308-0d34-0410-b5e6-96231b3b80d8