From 765d7e7a47f971e78f6fa5477309591512ea4747 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Fri, 4 Oct 2024 20:18:27 -0400 Subject: [PATCH] [IR] Fix '-Wparentheses' warnings. NFC --- llvm/lib/IR/Attributes.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index f2ba61ae51039e..c2fba49692c774 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -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; }