[clang] [clang][bytecode] Fix copy-paste error in needsCtor() (PR #215542)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 21:07:50 PDT 2026
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/215542
>From fa1cd14e2b803e16606db1eb67b6bb1b3fb49ed6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Tue, 11 Aug 2026 14:35:48 +0200
Subject: [PATCH] [clang][bytecode] Fix copy-paste error in needsCtor()
This was checking for `Integral<64, false>` twice.
---
clang/lib/AST/ByteCode/Descriptor.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/clang/lib/AST/ByteCode/Descriptor.cpp b/clang/lib/AST/ByteCode/Descriptor.cpp
index 3d661455460e3..98be3c592f97f 100644
--- a/clang/lib/AST/ByteCode/Descriptor.cpp
+++ b/clang/lib/AST/ByteCode/Descriptor.cpp
@@ -31,9 +31,8 @@ template <typename T> static constexpr bool needsCtor() {
std::is_same_v<T, Integral<32, false>> ||
std::is_same_v<T, Integral<64, true>> ||
std::is_same_v<T, Integral<64, false>> ||
- std::is_same_v<T, Integral<64, false>> ||
- std::is_same_v<T, IntegralAP<false>> ||
std::is_same_v<T, IntegralAP<true>> ||
+ std::is_same_v<T, IntegralAP<false>> ||
std::is_same_v<T, Floating> || std::is_same_v<T, Boolean>)
return false;
More information about the cfe-commits
mailing list