[clang] 451cad3 - [clang] Prefer logical && over & for boolean operations (#87276)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 10:21:43 PDT 2024
Author: aniplcc
Date: 2024-04-02T19:21:39+02:00
New Revision: 451cad3a2735f33e8b24cc0b53497d0dc8939f78
URL: https://github.com/llvm/llvm-project/commit/451cad3a2735f33e8b24cc0b53497d0dc8939f78
DIFF: https://github.com/llvm/llvm-project/commit/451cad3a2735f33e8b24cc0b53497d0dc8939f78.diff
LOG: [clang] Prefer logical && over & for boolean operations (#87276)
Added:
Modified:
clang/utils/TableGen/SveEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/SveEmitter.cpp b/clang/utils/TableGen/SveEmitter.cpp
index 131397e3825b02..3ddfd3277b6874 100644
--- a/clang/utils/TableGen/SveEmitter.cpp
+++ b/clang/utils/TableGen/SveEmitter.cpp
@@ -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; }
More information about the cfe-commits
mailing list