diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-04-21 22:48:40 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-04-21 22:48:40 +0000 |
commit | 46f1110b324583622521a01d2c8f949e1f215bd2 (patch) | |
tree | 2c63fe3391f22233a5cb7b6e4e6141411e7d0c8e /lib/Parse/ParseStmt.cpp | |
parent | bb9b80c308d7d3f758886243c7145404a50c66cf (diff) |
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
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r-- | lib/Parse/ParseStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |