Skip to content

Commit 2f34f20

Browse files
committed
formatting
1 parent 2376d4f commit 2f34f20

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,10 @@ void DistributedAccessor::emitLoadOfWitnessTables(llvm::Value *witnessTables,
582582

583583
void DistributedAccessor::emitReturn(llvm::Value *errorValue) {
584584
// Destroy loaded arguments.
585-
// This MUST be done before deallocating, as otherwise we'd try to swift_release freed memory,
586-
// which will be a no-op, however that also would mean we never drop retain counts to 0 and miss to run deinitializers of classes!
585+
// This MUST be done before deallocating, as otherwise we'd try to
586+
// swift_release freed memory, which will be a no-op, however that also would
587+
// mean we never drop retain counts to 0 and miss to run deinitializers of
588+
// classes!
587589
llvm::for_each(LoadedArguments, [&](const auto &argInfo) {
588590
emitDestroyCall(IGF, argInfo.second, argInfo.first);
589591
});
@@ -597,12 +599,6 @@ void DistributedAccessor::emitReturn(llvm::Value *errorValue) {
597599
}
598600
}
599601

600-
// Destroy loaded arguments.
601-
for (auto argInfo = LoadedArguments.rbegin();
602-
argInfo != LoadedArguments.rend(); ++argInfo) {
603-
emitDestroyCall(IGF, argInfo.second, argInfo.first);
604-
}
605-
606602
Explosion voidResult;
607603

608604
Explosion error;

0 commit comments

Comments
 (0)