diff options
| author | Arthur Eubanks <aeubanks@google.com> | 2024-05-06 23:15:48 +0000 |
|---|---|---|
| committer | Arthur Eubanks <aeubanks@google.com> | 2024-05-06 23:15:48 +0000 |
| commit | 6c348aca4ebb8f22c56e85a3c50513049673d74d (patch) | |
| tree | a7a1a367c965797917c790322c936934068e6f99 /tests/codegen/inline-debuginfo.rs | |
| parent | 31110152e2b3ce3c009be4a0a13edaff7c008b61 (diff) | |
| download | rust-6c348aca4ebb8f22c56e85a3c50513049673d74d.tar.gz rust-6c348aca4ebb8f22c56e85a3c50513049673d74d.zip | |
Adjust dbg.value/dbg.declare checks for LLVM update
https://github.com/llvm/llvm-project/pull/89799 changes llvm.dbg.value/declare intrinsics to be in a different, out-of-instruction-line representation. For example call void @llvm.dbg.declare(...) becomes #dbg_declare(...) Update tests accordingly to work with both the old and new way.
Diffstat (limited to 'tests/codegen/inline-debuginfo.rs')
| -rw-r--r-- | tests/codegen/inline-debuginfo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/inline-debuginfo.rs b/tests/codegen/inline-debuginfo.rs index b6ea489f99f..f327180560d 100644 --- a/tests/codegen/inline-debuginfo.rs +++ b/tests/codegen/inline-debuginfo.rs @@ -9,7 +9,7 @@ pub extern "C" fn callee(x: u32) -> u32 { } // CHECK-LABEL: caller -// CHECK: call void @llvm.dbg.value(metadata i32 %y, metadata !{{.*}}, metadata !DIExpression(DW_OP_constu, 3, DW_OP_minus, DW_OP_stack_value)), !dbg [[A:!.*]] +// CHECK: dbg{{.}}value({{(metadata )?}}i32 %y, {{(metadata )?}}!{{.*}}, {{(metadata )?}}!DIExpression(DW_OP_constu, 3, DW_OP_minus, DW_OP_stack_value){{.*}} [[A:![0-9]+]] // CHECK: [[A]] = !DILocation(line: {{.*}}, scope: {{.*}}, inlinedAt: {{.*}}) #[no_mangle] pub extern "C" fn caller(y: u32) -> u32 { |
