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)
commite6e422b1ee4f6a6530a54abc8f31afd2be2340c8
tree8bfeedc63fa421638b9f61c7901c6ccf80468448
parenta556848131d1e7210aa4e6e5724ba716a2bf5c13
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.

llvm-svn: 175281
clang/include/clang/Sema/ScopeInfo.h
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/scope-check.cpp