aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2024-10-04 20:18:27 -0400
committerMichael Liao <michael.hliao@gmail.com>2024-10-04 20:19:39 -0400
commit765d7e7a47f971e78f6fa5477309591512ea4747 (patch)
tree5eef88ce032f4c87c6f95d477c5dd4621b47fbe3 /llvm/lib/IR/Attributes.cpp
parent50838851e82281635deacd017273947d9259f8fe (diff)
downloadllvm-765d7e7a47f971e78f6fa5477309591512ea4747.zip
llvm-765d7e7a47f971e78f6fa5477309591512ea4747.tar.gz
llvm-765d7e7a47f971e78f6fa5477309591512ea4747.tar.bz2
[IR] Fix '-Wparentheses' warnings. NFC
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index f2ba61a..c2fba49 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;
}