[clang] [clang]SveEmitter:Update isVoid() to address #87271 (PR #87276)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 1 12:16:01 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: aniplcc (aniplcc)

<details>
<summary>Changes</summary>

Fixes #<!-- -->87271 

---
Full diff: https://github.com/llvm/llvm-project/pull/87276.diff


1 Files Affected:

- (modified) clang/utils/TableGen/SveEmitter.cpp (+1-1) 


``````````diff
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; }

``````````

</details>


https://github.com/llvm/llvm-project/pull/87276


More information about the cfe-commits mailing list