]> granicus.if.org Git - clang/commit
Fix <rdar://problem/6791490> [clang10 regression] [sema] invalid illegal jump diagnostic.
authorSteve Naroff <snaroff@apple.com>
Wed, 15 Apr 2009 14:38:36 +0000 (14:38 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 15 Apr 2009 14:38:36 +0000 (14:38 +0000)
commitb25ddfb1559d5c340239c33d98c987386543a947
tree6a551962ad6130765ea13af9d4a09f156bf7ced1
parent9faf50e62ddcd2535b472abc8daafd7042120caa
Fix <rdar://problem/6791490> [clang10 regression] [sema] invalid illegal jump diagnostic.

caused by: <rdar://problem/6252084> [sema] jumps into Obj-C exception blocks should be disallowed.

Sema::RecursiveCalcLabelScopes() and Sema::RecursiveCalcJumpScopes() need to pop the ScopeStack within the statement iteration loop (was outside the loop).

Eli, please review (thanks).

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