https://github.com/jsjodin created https://github.com/llvm/llvm-project/pull/232840
This patch fixes the test broken by #218453. >From 1da49f8a99c7e9bfe2c26d837e6ce9fcd2137d1d Mon Sep 17 00:00:00 2001 From: Jan Leyonberg <[email protected]> Date: Fri, 16 Oct 2026 12:49:09 -0400 Subject: [PATCH] [CIR][OpenMP] Fix test broken by #218453 for preserving host capture lifetimes This patch fixes the test broken by #218453. --- clang/test/CIR/CodeGenOpenMP/omp-llvmir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CIR/CodeGenOpenMP/omp-llvmir.c b/clang/test/CIR/CodeGenOpenMP/omp-llvmir.c index 98f4caf8539935..383c3b483a5051 100644 --- a/clang/test/CIR/CodeGenOpenMP/omp-llvmir.c +++ b/clang/test/CIR/CodeGenOpenMP/omp-llvmir.c @@ -58,7 +58,7 @@ // LLVM: %[[LOAD:.*]] = load i32, ptr %[[RETVAL]], align 4 // LLVM: ret i32 %[[LOAD]] -// LLVM-LABEL: define internal void @main..omp_par(ptr noalias %{{.*}}, ptr noalias %{{.*}}, ptr %{{.*}}) +// LLVM-LABEL: define internal void @main..omp_par(ptr noalias %{{.*}}, ptr noalias %{{.*}}, ptr noalias nofreeobj %{{.*}}) // LLVM: [[PAR_ENTRY:.*]]: // LLVM: %[[GEP_J:.*]] = getelementptr { ptr }, ptr %{{.*}}, i32 0, i32 0 // LLVM: %[[LOAD_J:.*]] = load ptr, ptr %[[GEP_J]], align 8 @@ -123,7 +123,7 @@ // OGCG: call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @1, i32 1, ptr @main.omp_outlined, ptr %[[J]]) // OGCG: ret i32 0 -// OGCG-LABEL: define internal void @main.omp_outlined(ptr noalias noundef %{{.*}}, ptr noalias noundef %{{.*}}, ptr noundef nonnull align 4 dereferenceable(4) %{{.*}}) +// OGCG-LABEL: define internal void @main.omp_outlined(ptr noalias noundef %{{.*}}, ptr noalias noundef %{{.*}}, ptr nofreeobj noundef nonnull align 4 dereferenceable(4) %{{.*}}) // OGCG: [[OUTLINED_ENTRY:.*]]: // OGCG: %[[GLOBAL_TID_ADDR:.*]] = alloca ptr, align 8 // OGCG: %[[BOUND_TID_ADDR:.*]] = alloca ptr, align 8 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
