]> granicus.if.org Git - clang/commit
improve error recovery handling broken 'then' or 'else' stmts in
authorChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2007 05:08:52 +0000 (05:08 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2007 05:08:52 +0000 (05:08 +0000)
commitb96728d90abc35a520798066d2a75ca36400a617
tree37118dc3718fa361c30677ba8a0b0323a5ca6a79
parent85f9bceab1542aafff012d4d28e998f4ba16e362
improve error recovery handling broken 'then' or 'else' stmts in
if statements.  This implements Sema/if-empty-body.c:f3, silencing
a bogus secondary warning.  It also improve the location info for
the nullstmts created for recovery purposes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43440 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseStmt.cpp
test/Sema/if-empty-body.c