[clang] [clang]SveEmitter:Update isVoid() to address #87271 (PR #87276)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 1 12:14:48 PDT 2024
https://github.com/aniplcc created https://github.com/llvm/llvm-project/pull/87276
Fixes #87271
>From f12399dc808ff46b129e0644f68d840bd0519a55 Mon Sep 17 00:00:00 2001
From: aniplcc <aniplccode at gmail.com>
Date: Tue, 2 Apr 2024 00:39:43 +0530
Subject: [PATCH] [clang]SveEmitter:Update isVoid() to address #87271
---
clang/utils/TableGen/SveEmitter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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