Author: Erich Keane Date: 2026-08-10T21:13:23Z New Revision: cbe3031ee342114ae2b00ff6ec9e6d4a25a4a9d9
URL: https://github.com/llvm/llvm-project/commit/cbe3031ee342114ae2b00ff6ec9e6d4a25a4a9d9 DIFF: https://github.com/llvm/llvm-project/commit/cbe3031ee342114ae2b00ff6ec9e6d4a25a4a9d9.diff LOG: [CIR] Fix a pair of classic codegen tests (#215389) Added: Modified: clang/test/CIR/CodeGen/attr-noundef.cpp clang/test/CIR/CodeGen/lambda-dtor-field.cpp Removed: ################################################################################ diff --git a/clang/test/CIR/CodeGen/attr-noundef.cpp b/clang/test/CIR/CodeGen/attr-noundef.cpp index 390559b4f8ae9..b2fcb34ae6824 100644 --- a/clang/test/CIR/CodeGen/attr-noundef.cpp +++ b/clang/test/CIR/CodeGen/attr-noundef.cpp @@ -41,7 +41,7 @@ void pass_nocopy(NoCopy e) {} // LLVM-LABEL: define {{.*}} void @_ZN13check_structs11pass_nocopyENS_6NoCopyE( // OGCG: define{{.*}} void @_ZN13check_structs10ret_nocopyEv{{.*}}(ptr dead_on_unwind noalias writable sret({{[^)]+}}) align 4 % -// OGCG: define{{.*}} void @_ZN13check_structs11pass_nocopyENS_6NoCopyE{{.*}}(ptr noundef align 4 dead_on_return % +// OGCG: define{{.*}} void @_ZN13check_structs11pass_nocopyENS_6NoCopyE{{.*}}(ptr nofree noundef align 4 dead_on_return dereferenceable(4) % struct Huge { int a[1024]; @@ -91,7 +91,7 @@ void pass_nocopy(NoCopy e) {} // LLVM-LABEL: define {{.*}} void @_ZN12check_unions11pass_nocopyENS_6NoCopyE( // OGCG: define{{.*}} void @_ZN12check_unions10ret_nocopyEv{{.*}}(ptr dead_on_unwind noalias writable sret({{[^)]+}}) align 4 % -// OGCG: define{{.*}} void @_ZN12check_unions11pass_nocopyENS_6NoCopyE{{.*}}(ptr noundef align 4 dead_on_return % +// OGCG: define{{.*}} void @_ZN12check_unions11pass_nocopyENS_6NoCopyE{{.*}}(ptr nofree noundef align 4 dead_on_return dereferenceable(4) % } // namespace check_unions //************ Passing `this` pointers diff --git a/clang/test/CIR/CodeGen/lambda-dtor-field.cpp b/clang/test/CIR/CodeGen/lambda-dtor-field.cpp index 8dde8f71d1b6b..9902873a2f0ba 100644 --- a/clang/test/CIR/CodeGen/lambda-dtor-field.cpp +++ b/clang/test/CIR/CodeGen/lambda-dtor-field.cpp @@ -92,7 +92,7 @@ void capture_two(S a, S b) { // LLVM: call void @"_ZZ11capture_two1SS_EN3$_0D1Ev"(ptr {{.*}} %[[LAM2]]) // LLVM: ret void -// OGCG-LABEL: define dso_local void @_Z11capture_two1SS_(ptr noundef {{.*}}%a, ptr noundef {{.*}}%b){{.*}}personality ptr @__gxx_personality_v0 +// OGCG-LABEL: define dso_local void @_Z11capture_two1SS_(ptr {{.*}} noundef {{.*}}%a, ptr {{.*}} noundef {{.*}}%b){{.*}}personality ptr @__gxx_personality_v0 // OGCG: %[[LAM2:.*]] = alloca %[[LAM_TY_2:.*]], align 4 // OGCG: %[[FA:.*]] = getelementptr inbounds nuw %[[LAM_TY_2]], ptr %[[LAM2]], i32 0, i32 0 // OGCG: call void @_ZN1SC1ERKS_(ptr {{.*}} %[[FA]], ptr {{.*}} %a) _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
