diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-09-06 00:24:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-09-06 00:24:58 +0000 |
commit | 06260b83cc831ef35ec0f2860c7cf19449e5d564 (patch) | |
tree | f621b502275fd383d1d649ea12556c06cc6964eb /test/ARCMT | |
parent | 1e2542d3585a7f51c3fb88269192bbc26572cfd7 (diff) |
Reword switch/goto diagnostics "protected scope" diagnostics. Making up a term
"protected scope" is very unhelpful here and actively confuses users. Instead,
simply state the nature of the problem in the diagnostic: we cannot jump from
here to there. The notes explain nicely why not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r-- | test/ARCMT/checking.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ARCMT/checking.m b/test/ARCMT/checking.m index 7815103822..d8ccf16752 100644 --- a/test/ARCMT/checking.m +++ b/test/ARCMT/checking.m @@ -182,7 +182,7 @@ void test6(unsigned cond) { ; id x; // expected-note {{jump bypasses initialization of retaining variable}} - case 1: // expected-error {{switch case is in protected scope}} + case 1: // expected-error {{cannot jump}} x = 0; break; } |