Skip to content

Commit 4cfd1d0

Browse files
committed
[Distributed] Switch accessor parameter convention to Direct_Unowned since all of them are trivial
1 parent b503fcf commit 4cfd1d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ static CanSILFunctionType getAccessorType(IRGenModule &IGM,
147147
auto getRawPointerParameter = [&]() {
148148
auto ptrType = Context.getUnsafeRawPointerType();
149149
return SILParameterInfo(ptrType->getCanonicalType(),
150-
ParameterConvention::Direct_Guaranteed);
150+
ParameterConvention::Direct_Unowned);
151151
};
152152

153153
auto getUIntParameter = [&]() {
154154
return SILParameterInfo(Context.getUIntType()->getCanonicalType(),
155-
ParameterConvention::Direct_Guaranteed);
155+
ParameterConvention::Direct_Unowned);
156156
};
157157

158158
// `self` of the distributed actor is going to be passed as an argument

0 commit comments

Comments
 (0)