[clang] [Clang][Sema] placement new initializes typedef array with correct size (PR #88902)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 10:31:34 PDT 2024
https://github.com/mahtohappy updated https://github.com/llvm/llvm-project/pull/88902
>From 751fd34e843228ac69c317aa9ce4eba34df0d1e6 Mon Sep 17 00:00:00 2001
From: mahtohappy <Happy.Kumar at windriver.com>
Date: Tue, 16 Apr 2024 07:25:34 -0700
Subject: [PATCH 1/3] [Clang][Sema] placement new initializes typedef array
with correct size
Build Failure Fix
---
.../SemaCXX/{instantiate-new-placement-size.cpp => PR41441.cpp} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename clang/test/SemaCXX/{instantiate-new-placement-size.cpp => PR41441.cpp} (95%)
diff --git a/clang/test/SemaCXX/instantiate-new-placement-size.cpp b/clang/test/SemaCXX/PR41441.cpp
similarity index 95%
rename from clang/test/SemaCXX/instantiate-new-placement-size.cpp
rename to clang/test/SemaCXX/PR41441.cpp
index 7a29d3dee8491e..ecc8594dfff67a 100644
--- a/clang/test/SemaCXX/instantiate-new-placement-size.cpp
+++ b/clang/test/SemaCXX/PR41441.cpp
@@ -1,5 +1,5 @@
// RUN: %clang -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s
-// Issue no: 41441
+
#include <new>
// CHECK: call void @llvm.memset.p0.i64(ptr align 1 %x, i8 0, i64 8, i1 false)
>From 517ff20b18e12d4e20eb2111ac600c2dd86b242a Mon Sep 17 00:00:00 2001
From: mahtohappy <Happy.Kumar at windriver.com>
Date: Tue, 16 Apr 2024 08:43:27 -0700
Subject: [PATCH 2/3] build trigger
>From de034e9577bcf4a9240ff8c7036842e6085bb9e4 Mon Sep 17 00:00:00 2001
From: mahtohappy <Happy.Kumar at windriver.com>
Date: Tue, 16 Apr 2024 10:28:57 -0700
Subject: [PATCH 3/3] build fix
---
clang/test/SemaCXX/PR41441.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/SemaCXX/PR41441.cpp b/clang/test/SemaCXX/PR41441.cpp
index ecc8594dfff67a..0b012b33fce343 100644
--- a/clang/test/SemaCXX/PR41441.cpp
+++ b/clang/test/SemaCXX/PR41441.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang --target=x86_64-pc-linux -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s
#include <new>
More information about the cfe-commits
mailing list