]> granicus.if.org Git - clang/commitdiff
[NFC] Add parentheses to avoid -Wparentheses.
authorNicolas Lesser <blitzrakete@gmail.com>
Sat, 4 May 2019 11:28:11 +0000 (11:28 +0000)
committerNicolas Lesser <blitzrakete@gmail.com>
Sat, 4 May 2019 11:28:11 +0000 (11:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359968 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index e81e0863b518d4dd9886b9733b30e0e073c5645a..f63fd56a898d6586fdca43ca69dfac19b901aa8c 100644 (file)
@@ -3891,7 +3891,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
       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());