3
3
// RUN: %target-swift-frontend -parse-as-library -disable-availability-checking -g -c %s -o %t/out.o
4
4
// RUN: %llvm-dwarfdump --show-children %t/out.o | %FileCheck -check-prefix=DWARF %s
5
5
6
- // REQUIRES: rdar91467528
7
-
8
6
// This test checks that:
9
7
//
10
8
// 1. At the IR level, we insert the appropriate llvm.dbg.addr, llvm.dbg.value.
@@ -235,7 +233,9 @@ public func varSimpleTest<T>(_ msg: inout T, _ msg2: T) async {
235
233
// DWARF-NEXT: DW_AT_name ("k")
236
234
//
237
235
// DWARF: DW_TAG_variable
238
- // DWARF-NEXT: DW_AT_location (DW_OP_entry_value([[ASYNC_REG]]), DW_OP_deref, DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x10)
236
+ // We don't pattern match the actual entry value of "m" since we don't guarantee
237
+ // it is an entry value since it isn't moved.
238
+ // DWARF-NEXT: DW_AT_location
239
239
// DWARF-NEXT: DW_AT_name ("m")
240
240
//
241
241
// DWARF: DW_AT_linkage_name ("$s3out16varSimpleTestVaryyYaFTY2_")
@@ -249,7 +249,9 @@ public func varSimpleTest<T>(_ msg: inout T, _ msg2: T) async {
249
249
//
250
250
// DWARF: DW_AT_linkage_name ("$s3out16varSimpleTestVaryyYaFTQ3_")
251
251
// DWARF: DW_TAG_variable
252
- // DWARF-NEXT: DW_AT_location (DW_OP_entry_value([[ASYNC_REG]]), DW_OP_deref, DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x10)
252
+ // We don't pattern match the actual entry value of "m" since we don't guarantee
253
+ // it is an entry value since it isn't moved.
254
+ // DWARF-NEXT: DW_AT_location
253
255
// DWARF-NEXT: DW_AT_name ("m")
254
256
// K is dead here.
255
257
// DWARF: DW_TAG_variable
@@ -258,7 +260,9 @@ public func varSimpleTest<T>(_ msg: inout T, _ msg2: T) async {
258
260
// We reinitialize k in 4.
259
261
// DWARF: DW_AT_linkage_name ("$s3out16varSimpleTestVaryyYaFTY4_")
260
262
// DWARF: DW_TAG_variable
261
- // DWARF-NEXT: DW_AT_location (DW_OP_entry_value([[ASYNC_REG]]), DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x10)
263
+ // We don't pattern match the actual entry value of "m" since we don't guarantee
264
+ // it is an entry value since it isn't moved.
265
+ // DWARF-NEXT: DW_AT_location
262
266
// DWARF-NEXT: DW_AT_name ("m")
263
267
// DWARF: DW_TAG_variable
264
268
// DWARF-NEXT: DW_AT_location (0x{{[0-9a-f]+}}:
0 commit comments