From: Richard Smith Date: Thu, 21 Apr 2011 22:48:40 +0000 (+0000) Subject: Fix gcc warning. Add parens to this assert, incidentally reassociating it, but the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46f1110b324583622521a01d2c8f949e1f215bd2;p=clang Fix gcc warning. Add parens to this assert, incidentally reassociating it, but the condition is the same either way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129948 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index aaf79acf4f..74c2472578 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -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