Fix Wparentheses gcc warning. NFC.

Wrap the 'anyof' hasAttribute checks so that we don't get precedence warnings with the assertion message.
This commit is contained in:
Simon Pilgrim 2020-04-28 13:57:47 +01:00
parent c57720125f
commit 242e04ab27
1 changed files with 3 additions and 2 deletions

View File

@ -4197,8 +4197,9 @@ void AssemblyWriter::writeAttribute(const Attribute &Attr, bool InAttrGroup) {
return;
}
assert(Attr.hasAttribute(Attribute::ByVal) ||
Attr.hasAttribute(Attribute::Preallocated) && "unexpected type attr");
assert((Attr.hasAttribute(Attribute::ByVal) ||
Attr.hasAttribute(Attribute::Preallocated)) &&
"unexpected type attr");
if (Attr.hasAttribute(Attribute::ByVal)) {
Out << "byval";