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?= <[email protected]>
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;
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to