Skip to content

Commit 9f3654f

Browse files
Merge pull request #76390 from rastogishubham/FixupTestsCoroSplit
Fixup swift tests for DIExpression folding in Corosplit
2 parents 318d257 + b14e8f0 commit 9f3654f

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

test/DebugInfo/async-args.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ func withGenericArg<T>(_ msg: T) async {
1616

1717
await forceSplit()
1818
// CHECK-LABEL: {{^define .*}} @"$s1M14withGenericArgyyxYalFTQ0_"(ptr swiftasync %0)
19-
// CHECK-DAG: #dbg_declare(ptr %0, ![[MSG_R:[0-9]+]], !DIExpression({{.*}}DW_OP_plus_uconst, [[OFFSET:[0-9]+]], DW_OP_plus_uconst, {{[0-9]+}}, DW_OP_deref),
20-
// CHECK-DAG: #dbg_declare(ptr %0, ![[TAU_R:[0-9]+]], !DIExpression({{.*}}DW_OP_deref, DW_OP_plus_uconst, [[OFFSET]], DW_OP_plus_uconst, {{[0-9]+}}),
19+
// CHECK-DAG: #dbg_declare(ptr %0, ![[MSG_R:[0-9]+]], !DIExpression({{.*}}DW_OP_plus_uconst, {{[0-9]+}}, DW_OP_deref),
20+
// CHECK-DAG: #dbg_declare(ptr %0, ![[TAU_R:[0-9]+]], !DIExpression({{.*}}DW_OP_deref, DW_OP_plus_uconst, {{[0-9]+}}),
2121
use(msg)
2222
}
2323
// CHECK-LABEL: {{^define }}

test/DebugInfo/async-let-await.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public func getVegetables() async -> [String] {
1313
public func chopVegetables() async throws -> [String] {
1414
let veggies = await getVegetables()
1515
// CHECK-NOT: {{^define }}
16-
// CHECK: #dbg_declare(ptr %0, ![[V:[0-9]+]], !DIExpression(DW_OP_LLVM_entry_value, 1, DW_OP_deref, DW_OP_plus_uconst, {{[0-9]+}}, DW_OP_plus_uconst, {{[0-9]+}})
16+
// CHECK: #dbg_declare(ptr %0, ![[V:[0-9]+]], !DIExpression(DW_OP_LLVM_entry_value, 1, DW_OP_deref, DW_OP_plus_uconst, {{[0-9]+}})
1717
// CHECK: ![[V]] = !DILocalVariable(name: "veggies"
1818
return veggies.map { "chopped \($0)" }
1919
}

0 commit comments

Comments
 (0)