Fix gcc compilation warning in an assert [NFC]

Without this, gcc (7.4) complains with

../tools/clang/lib/Parse/ParseDecl.cpp:3937:63: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
     assert(!isAlreadyConsumed || RangeEnd != SourceLocation() &&
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                                      "both or neither of isAlreadyConsumed and "
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                      "RangeEnd needs to be set");
                                      ~

llvm-svn: 360333
This commit is contained in:
Mikael Holmen 2019-05-09 12:11:57 +00:00
parent db68b104d8
commit 1fa5248d44
1 changed files with 1 additions and 1 deletions

View File

@ -3934,7 +3934,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());