Skip to content

Commit 0906d32

Browse files
committed
[Distributed] minor cleanups, remove dump=always from tests
1 parent 2a3ac44 commit 0906d32

6 files changed

+8
-7
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ void IRGenModule::emitDistributedTargetAccessor(ThunkOrRequirement target) {
379379
IRGenMangler mangler;
380380

381381
addAccessibleFunction(AccessibleFunction::forDistributed(
382-
mangler.mangleDistributedThunkRecord(targetDecl),
383-
mangler.mangleDistributedThunk(targetDecl),
382+
/*recordName=*/mangler.mangleDistributedThunkRecord(targetDecl),
383+
/*accessorName=*/mangler.mangleDistributedThunk(targetDecl),
384384
accessor.getTargetType(),
385385
getAddrOfAsyncFunctionPointer(accessorRef)));
386386
}

stdlib/public/runtime/AccessibleFunction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ _searchForFunctionRecord(AccessibleFunctionsState &S, llvm::StringRef name) {
152152
for (auto &record : section) {
153153
auto recordName =
154154
swift::Demangle::makeSymbolicMangledNameStringRef(record.Name.get());
155-
if (recordName == name)
155+
if (recordName == name) {
156156
return traceState.end(&record);
157+
}
157158
}
158159
}
159160
return nullptr;

test/Distributed/Macros/distributed_macro_expansion_DistributedProtocol_simple.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protocol Greeter: DistributedActor where ActorSystem: DistributedActorSystem<any
2222
// CHECK-NEXT: Distributed._DistributedActorStub
2323
// CHECK-NEXT: where ActorSystem: DistributedActorSystem<any Codable>
2424
// CHECK-NEXT: {
25-
// CHECK-NEXT: }
25+
// CHECK: }
2626

2727
// CHECK: extension Greeter where Self: Distributed._DistributedActorStub {
2828
// CHECK-NEXT: distributed func greet(name: String) -> String {

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -target %target-swift-5.7-abi-triple %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -target %target-swift-5.7-abi-triple -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --dump-input=always
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension_concrete.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -target %target-swift-5.7-abi-triple %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -target %target-swift-5.7-abi-triple -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --dump-input=always
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_not_codable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -target %target-swift-5.7-abi-triple %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -target %target-swift-5.7-abi-triple -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --dump-input=always
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

0 commit comments

Comments
 (0)