Skip to content

Commit e5a6974

Browse files
committed
[Test] Underscored scoped_address_liveness.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 3589246 commit e5a6974

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SIL/Utils/ScopedAddressUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ namespace swift::test {
113113
// Dumps:
114114
// - the liveness result and boundary
115115
static FunctionTest ScopedAddressLivenessTest(
116-
"scoped-address-liveness", [](auto &function, auto &arguments, auto &test) {
116+
"scoped_address_liveness", [](auto &function, auto &arguments, auto &test) {
117117
auto value = arguments.takeValue();
118118
assert(!arguments.hasUntaken());
119119
llvm::outs() << "Scoped address analysis: " << value;

test/SILOptimizer/liveness_incomplete_unit.sil

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ sil @genericReturn : $@convention(thin) <τ_0_0> (@guaranteed C) -> @out τ_0_0
106106
// incomplete. Since the store_borrow produces an address, the load
107107
// borrow is considered a ScopedAddressUse, and all of its uses,
108108
// including the Apply will contribute to the store_borrow liveness.
109-
// CHECK-LABEL: testInnerUnreachable: scoped-address-liveness
109+
// CHECK-LABEL: testInnerUnreachable: scoped_address_liveness
110110
// CHECK: Scoped address analysis: [[SB:%.*]] = store_borrow %0
111111
// CHECK: bb0: LiveWithin
112112
// CHECK-NEXT: regular user: %{{.*}} = apply
@@ -115,7 +115,7 @@ sil shared [ossa] @testInnerUnreachable : $@convention(thin) (@guaranteed C, @th
115115
bb0(%0 : @guaranteed $C, %1 : $@thick Never.Type):
116116
%2 = alloc_stack $C
117117
%3 = store_borrow %0 to %2 : $*C
118-
specify_test "scoped-address-liveness @trace[0]"
118+
specify_test "scoped_address_liveness @trace[0]"
119119
debug_value [trace] %3 : $*C
120120
%5 = load_borrow %3 : $*C
121121
%6 = function_ref @genericReturn : $@convention(thin) <τ_0_0> (@guaranteed C) -> @out τ_0_0

0 commit comments

Comments
 (0)