Skip to content

Commit

Permalink
[clang] Prefer logical && over & for boolean operations (#87276)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniplcc committed Apr 2, 2024
1 parent a5932e1 commit 451cad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/utils/TableGen/SveEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SVEType {
bool isScalableVector() const { return isVector() && IsScalable; }
bool isFixedLengthVector() const { return isVector() && !IsScalable; }
bool isChar() const { return ElementBitwidth == 8; }
bool isVoid() const { return Void & !Pointer; }
bool isVoid() const { return Void && !Pointer; }
bool isDefault() const { return DefaultType; }
bool isFloat() const { return Float && !BFloat; }
bool isBFloat() const { return BFloat && !Float; }
Expand Down

0 comments on commit 451cad3

Please sign in to comment.