]> granicus.if.org Git - clang/commitdiff
Fix http://llvm.org/bugs/show_bug.cgi?id=1967.
authorSteve Naroff <snaroff@apple.com>
Thu, 31 Jan 2008 18:29:10 +0000 (18:29 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 31 Jan 2008 18:29:10 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46616 91177308-0d34-0410-b5e6-96231b3b80d8

Parse/ParseStmt.cpp

index 1eac2549d7666953adaea8cc8a2cb020060dd07c..8559a3dd48ae123e708d38c91af89d9bda90f34c 100644 (file)
@@ -472,7 +472,7 @@ Parser::StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) {
   // We broke out of the while loop because we found a '}' or EOF.
   if (Tok.isNot(tok::r_brace)) {
     Diag(Tok, diag::err_expected_rbrace);
-    return 0;
+    return true;
   }
   
   SourceLocation RBraceLoc = ConsumeBrace();
@@ -565,8 +565,6 @@ Parser::StmtResult Parser::ParseIfStatement() {
   if (ElseStmt.isInvalid)
     ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc);
   
-  
-  
   return Actions.ActOnIfStmt(IfLoc, CondExp.Val, ThenStmt.Val,
                              ElseLoc, ElseStmt.Val);
 }