@@ -1295,7 +1295,7 @@ RValue RValueEmitter::visitOptionalTryExpr(OptionalTryExpr *E, SGFContext C) {
12951295 bool isByAddress = ((usingProvidedContext || optTL.isAddressOnly ()) &&
12961296 SGF.silConv .useLoweredAddresses ());
12971297
1298- std::unique_ptr<TemporaryInitialization> optTemp;
1298+ TemporaryInitializationPtr optTemp;
12991299 if (!isByAddress) {
13001300 // If the caller produced a context for us, but we're not going
13011301 // to use it, make sure we don't.
@@ -6117,7 +6117,7 @@ void SILGenFunction::emitOptionalEvaluation(SILLocation loc, Type optType,
61176117 bool isByAddress = ((usingProvidedContext || optTL.isAddressOnly ()) &&
61186118 silConv.useLoweredAddresses ());
61196119
6120- std::unique_ptr<TemporaryInitialization> optTemp;
6120+ TemporaryInitializationPtr optTemp;
61216121 if (!isByAddress) {
61226122 // If the caller produced a context for us, but we're not going
61236123 // to use it, make sure we don't.
@@ -6141,7 +6141,7 @@ void SILGenFunction::emitOptionalEvaluation(SILLocation loc, Type optType,
61416141
61426142 // Inside of the cleanups scope, create a new initialization to
61436143 // emit into optAddr.
6144- std::unique_ptr<TemporaryInitialization> normalInit;
6144+ TemporaryInitializationPtr normalInit;
61456145 if (isByAddress) {
61466146 normalInit = useBufferAsTemporary (optAddr, optTL);
61476147 }
@@ -7149,7 +7149,7 @@ RValue RValueEmitter::visitConsumeExpr(ConsumeExpr *E, SGFContext C) {
71497149
71507150 // If we aren't loadable, then create a temporary initialization and
71517151 // explicit_copy_addr into that.
7152- std::unique_ptr<TemporaryInitialization> optTemp;
7152+ TemporaryInitializationPtr optTemp;
71537153 optTemp = SGF.emitTemporary (E, SGF.getTypeLowering (subType));
71547154 SILValue toAddr = optTemp->getAddressForInPlaceInitialization (SGF, E);
71557155 assert (!isa<LValueType>(E->getType ()->getCanonicalType ()) &&
@@ -7256,7 +7256,7 @@ RValue RValueEmitter::visitCopyExpr(CopyExpr *E, SGFContext C) {
72567256
72577257 // If we aren't loadable, then create a temporary initialization and
72587258 // explicit_copy_addr into that.
7259- std::unique_ptr<TemporaryInitialization> optTemp;
7259+ TemporaryInitializationPtr optTemp;
72607260 optTemp = SGF.emitTemporary (E, SGF.getTypeLowering (subType));
72617261 SILValue toAddr = optTemp->getAddressForInPlaceInitialization (SGF, E);
72627262 assert (!isa<LValueType>(E->getType ()->getCanonicalType ()) &&
0 commit comments