@@ -1295,7 +1295,7 @@ RValue RValueEmitter::visitOptionalTryExpr(OptionalTryExpr *E, SGFContext C) {
1295
1295
bool isByAddress = ((usingProvidedContext || optTL.isAddressOnly ()) &&
1296
1296
SGF.silConv .useLoweredAddresses ());
1297
1297
1298
- std::unique_ptr<TemporaryInitialization> optTemp;
1298
+ TemporaryInitializationPtr optTemp;
1299
1299
if (!isByAddress) {
1300
1300
// If the caller produced a context for us, but we're not going
1301
1301
// to use it, make sure we don't.
@@ -6117,7 +6117,7 @@ void SILGenFunction::emitOptionalEvaluation(SILLocation loc, Type optType,
6117
6117
bool isByAddress = ((usingProvidedContext || optTL.isAddressOnly ()) &&
6118
6118
silConv.useLoweredAddresses ());
6119
6119
6120
- std::unique_ptr<TemporaryInitialization> optTemp;
6120
+ TemporaryInitializationPtr optTemp;
6121
6121
if (!isByAddress) {
6122
6122
// If the caller produced a context for us, but we're not going
6123
6123
// to use it, make sure we don't.
@@ -6141,7 +6141,7 @@ void SILGenFunction::emitOptionalEvaluation(SILLocation loc, Type optType,
6141
6141
6142
6142
// Inside of the cleanups scope, create a new initialization to
6143
6143
// emit into optAddr.
6144
- std::unique_ptr<TemporaryInitialization> normalInit;
6144
+ TemporaryInitializationPtr normalInit;
6145
6145
if (isByAddress) {
6146
6146
normalInit = useBufferAsTemporary (optAddr, optTL);
6147
6147
}
@@ -7149,7 +7149,7 @@ RValue RValueEmitter::visitConsumeExpr(ConsumeExpr *E, SGFContext C) {
7149
7149
7150
7150
// If we aren't loadable, then create a temporary initialization and
7151
7151
// explicit_copy_addr into that.
7152
- std::unique_ptr<TemporaryInitialization> optTemp;
7152
+ TemporaryInitializationPtr optTemp;
7153
7153
optTemp = SGF.emitTemporary (E, SGF.getTypeLowering (subType));
7154
7154
SILValue toAddr = optTemp->getAddressForInPlaceInitialization (SGF, E);
7155
7155
assert (!isa<LValueType>(E->getType ()->getCanonicalType ()) &&
@@ -7256,7 +7256,7 @@ RValue RValueEmitter::visitCopyExpr(CopyExpr *E, SGFContext C) {
7256
7256
7257
7257
// If we aren't loadable, then create a temporary initialization and
7258
7258
// explicit_copy_addr into that.
7259
- std::unique_ptr<TemporaryInitialization> optTemp;
7259
+ TemporaryInitializationPtr optTemp;
7260
7260
optTemp = SGF.emitTemporary (E, SGF.getTypeLowering (subType));
7261
7261
SILValue toAddr = optTemp->getAddressForInPlaceInitialization (SGF, E);
7262
7262
assert (!isa<LValueType>(E->getType ()->getCanonicalType ()) &&
0 commit comments