Skip to content

Commit 242e04a

Browse files
committed
Fix Wparentheses gcc warning. NFC.
Wrap the 'anyof' hasAttribute checks so that we don't get precedence warnings with the assertion message.
1 parent c577201 commit 242e04a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4197,8 +4197,9 @@ void AssemblyWriter::writeAttribute(const Attribute &Attr, bool InAttrGroup) {
41974197
return;
41984198
}
41994199

4200-
assert(Attr.hasAttribute(Attribute::ByVal) ||
4201-
Attr.hasAttribute(Attribute::Preallocated) && "unexpected type attr");
4200+
assert((Attr.hasAttribute(Attribute::ByVal) ||
4201+
Attr.hasAttribute(Attribute::Preallocated)) &&
4202+
"unexpected type attr");
42024203

42034204
if (Attr.hasAttribute(Attribute::ByVal)) {
42044205
Out << "byval";

0 commit comments

Comments
 (0)