Fix a theoretical bug when ParseCompoundStatement() returns StmtError.
authorNico Weber <nicolasweber@gmx.de>
Mon, 9 Mar 2015 03:17:15 +0000 (03:17 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 9 Mar 2015 03:17:15 +0000 (03:17 +0000)
commitce90329824037c89af64a5ee852e4c86f0c62cc7
tree69257a102a93ca8f330c72f704bef52722df4ca3
parent75eda5e913d9fb9539ba79dba625bc98fe91ad31
Fix a theoretical bug when ParseCompoundStatement() returns StmtError.

ParseCompoundStatement() currently never returns StmtError, but if it did,
Sema would keep the __finally scope on its stack indefinitely.  Explicitly
add an error callback that clears it.

llvm-svn: 231625
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/SemaStmt.cpp