[cfe-commits] r129948 - /cfe/trunk/lib/Parse/ParseStmt.cpp

Richard Smith richard-llvm at metafoo.co.uk
Thu Apr 21 15:48:40 PDT 2011


Author: rsmith
Date: Thu Apr 21 17:48:40 2011
New Revision: 129948

URL: http://llvm.org/viewvc/llvm-project?rev=129948&view=rev
Log:
Fix gcc warning. Add parens to this assert, incidentally reassociating it, but the condition is the same either way.

Modified:
    cfe/trunk/lib/Parse/ParseStmt.cpp

Modified: cfe/trunk/lib/Parse/ParseStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=129948&r1=129947&r2=129948&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseStmt.cpp (original)
+++ cfe/trunk/lib/Parse/ParseStmt.cpp Thu Apr 21 17:48:40 2011
@@ -268,7 +268,7 @@
 ///
 StmtResult Parser::ParseCaseStatement(ParsedAttributes &attrs, bool MissingCase,
                                       ExprResult Expr) {
-  assert(MissingCase || Tok.is(tok::kw_case) && "Not a case stmt!");
+  assert((MissingCase || Tok.is(tok::kw_case)) && "Not a case stmt!");
   // FIXME: Use attributes?
 
   // It is very very common for code to contain many case statements recursively





More information about the cfe-commits mailing list