Skip to content

Commit

Permalink
[IR] Fix '-Wparentheses' warnings. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Oct 5, 2024
1 parent 5083885 commit 765d7e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/IR/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ bool Attribute::canUseAsRetAttr(AttrKind Kind) {

static bool hasIntersectProperty(Attribute::AttrKind Kind,
AttributeProperty Prop) {
assert(Prop == AttributeProperty::IntersectPreserve ||
Prop == AttributeProperty::IntersectAnd ||
Prop == AttributeProperty::IntersectMin ||
Prop == AttributeProperty::IntersectCustom &&
"Unknown intersect property");
assert((Prop == AttributeProperty::IntersectPreserve ||
Prop == AttributeProperty::IntersectAnd ||
Prop == AttributeProperty::IntersectMin ||
Prop == AttributeProperty::IntersectCustom) &&
"Unknown intersect property");
return (getAttributeProperties(Kind) &
AttributeProperty::IntersectPropertyMask) == Prop;
}
Expand Down

0 comments on commit 765d7e7

Please sign in to comment.