]> granicus.if.org Git - clang/commitdiff
Fix gcc warning. Add parens to this assert, incidentally reassociating it, but the...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Apr 2011 22:48:40 +0000 (22:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Apr 2011 22:48:40 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129948 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseStmt.cpp

index aaf79acf4fd40afef4c1c2259af074e4f7306498..74c2472578a2bab5c9ca992cd63f33900d77ad2a 100644 (file)
@@ -268,7 +268,7 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &attrs) {
 ///
 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