[llvm] 765d7e7 - [IR] Fix '-Wparentheses' warnings. NFC

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 17:20:47 PDT 2024


Author: Michael Liao
Date: 2024-10-04T20:19:39-04:00
New Revision: 765d7e7a47f971e78f6fa5477309591512ea4747

URL: https://github.com/llvm/llvm-project/commit/765d7e7a47f971e78f6fa5477309591512ea4747
DIFF: https://github.com/llvm/llvm-project/commit/765d7e7a47f971e78f6fa5477309591512ea4747.diff

LOG: [IR] Fix '-Wparentheses' warnings. NFC

Added: 
    

Modified: 
    llvm/lib/IR/Attributes.cpp

Removed: 
    


################################################################################
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;
 }


        


More information about the llvm-commits mailing list