From 46f1110b324583622521a01d2c8f949e1f215bd2 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 21 Apr 2011 22:48:40 +0000 Subject: [PATCH] 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 --- lib/Parse/ParseStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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