]> granicus.if.org Git - clang/commit
When a statement is dropped from the AST because it was invalid, make sure
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Feb 2013 18:34:13 +0000 (18:34 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Feb 2013 18:34:13 +0000 (18:34 +0000)
commit820b23dc924a4ae7af07d5a75d6b1d781c267d57
tree41ebf4f1191d15987c38300b22c8d3d526f28fba
parentb130a54940171a95422a20a07ee8fdfe009806a5
When a statement is dropped from the AST because it was invalid, make sure
we don't do the scope checks otherwise we are going to hit assertion checks
since a label may not have been actually added.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175281 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/ScopeInfo.h
lib/Parse/ParseStmt.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/scope-check.cpp