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:
parent
db68b104d8
commit
1fa5248d44
|
@ -3934,7 +3934,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(!isAlreadyConsumed || RangeEnd != SourceLocation() &&
|
assert((!isAlreadyConsumed || RangeEnd != SourceLocation()) &&
|
||||||
"both or neither of isAlreadyConsumed and "
|
"both or neither of isAlreadyConsumed and "
|
||||||
"RangeEnd needs to be set");
|
"RangeEnd needs to be set");
|
||||||
DS.SetRangeEnd(isAlreadyConsumed ? RangeEnd : Tok.getLocation());
|
DS.SetRangeEnd(isAlreadyConsumed ? RangeEnd : Tok.getLocation());
|
||||||
|
|
Loading…
Reference in New Issue