Skip to content

Conversation

aniplcc
Copy link
Contributor

@aniplcc aniplcc commented Apr 1, 2024

Fixes #87271

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Apr 1, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 1, 2024

@llvm/pr-subscribers-clang

Author: aniplcc (aniplcc)

Changes

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

@SimplyDanny SimplyDanny merged commit 451cad3 into llvm:main Apr 2, 2024
@SimplyDanny
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang/utils/TableGen/SveEmitter.cpp:102: possible wrong operator ?

3 participants