Skip to content

Commit 451cad3

Browse files
authored
[clang] Prefer logical && over & for boolean operations (#87276)
1 parent a5932e1 commit 451cad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/TableGen/SveEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class SVEType {
9999
bool isScalableVector() const { return isVector() && IsScalable; }
100100
bool isFixedLengthVector() const { return isVector() && !IsScalable; }
101101
bool isChar() const { return ElementBitwidth == 8; }
102-
bool isVoid() const { return Void & !Pointer; }
102+
bool isVoid() const { return Void && !Pointer; }
103103
bool isDefault() const { return DefaultType; }
104104
bool isFloat() const { return Float && !BFloat; }
105105
bool isBFloat() const { return BFloat && !Float; }

0 commit comments

Comments
 (0)