[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 05:36:48 PDT 2026
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/215542
This was checking for `Integral<64, false>` twice.
>From 86dbca2bfcfd2261468cffb6e0b0278df4d30439 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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/lib/AST/ByteCode/Descriptor.cpp b/clang/lib/AST/ByteCode/Descriptor.cpp
index 3d661455460e3..12920241b8a89 100644
--- a/clang/lib/AST/ByteCode/Descriptor.cpp
+++ b/clang/lib/AST/ByteCode/Descriptor.cpp
@@ -30,10 +30,10 @@ template <typename T> static constexpr bool needsCtor() {
std::is_same_v<T, Integral<32, true>> ||
std::is_same_v<T, Integral<32, false>> ||
std::is_same_v<T, Integral<64, true>> ||
+ 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