Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 2, 2024

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
Collaborator

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
6 checks passed
@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