r359968 - [NFC] Add parentheses to avoid -Wparentheses.

Nicolas Lesser via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 04:28:12 PDT 2019


Author: rakete1111
Date: Sat May  4 04:28:11 2019
New Revision: 359968

URL: http://llvm.org/viewvc/llvm-project?rev=359968&view=rev
Log:
[NFC] Add parentheses to avoid -Wparentheses.

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

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=359968&r1=359967&r2=359968&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sat May  4 04:28:11 2019
@@ -3891,7 +3891,7 @@ void Parser::ParseDeclarationSpecifiers(
       continue;
     }
 
-    assert(!isAlreadyConsumed || RangeEnd != SourceLocation() &&
+    assert((!isAlreadyConsumed || RangeEnd != SourceLocation()) &&
                                      "both or neither of isAlreadyConsumed and "
                                      "RangeEnd needs to be set");
     DS.SetRangeEnd(isAlreadyConsumed ? RangeEnd : Tok.getLocation());




More information about the cfe-commits mailing list