about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorJoshua Wong <joshuawong@anticentri.st>2024-10-09 14:24:05 -0400
committerJoshua Wong <joshuawong@anticentri.st>2024-10-10 09:50:35 -0400
commit5e474f7d83fc931f355cfdadf394313e57290050 (patch)
treecd5470a173b6c0b02b29338104e98ccef0aa99cc /tests/codegen
parentdd0620b86721ae8cae86736443acd3f72ba6fc32 (diff)
allocate before calling T::default in <Arc<T>>::default()
Same rationale as in the previous commit.
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/placement-new.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/placement-new.rs b/tests/codegen/placement-new.rs
index d5c7969dd19..edb25df5eb4 100644
--- a/tests/codegen/placement-new.rs
+++ b/tests/codegen/placement-new.rs
@@ -19,9 +19,9 @@ pub fn box_default_inplace() -> Box<(String, String)> {
 // CHECK-LABEL: @arc_default_inplace
 #[no_mangle]
 pub fn arc_default_inplace() -> Arc<(String, String)> {
-    // CHECK: [[ALLOCA:%.*]] = alloca
+    // CHECK-NOT: alloca
     // CHECK: [[ARC:%.*]] = {{.*}}call {{.*}}__rust_alloc(
-    // CHECK: call void @llvm.memcpy
+    // CHECK-NOT: call void @llvm.memcpy
     // CHECK: ret ptr [[ARC]]
     Arc::default()
 }