@@ -320,24 +320,24 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
320
320
// Temporary to hold the intermediate result.
321
321
AllocStackInst *Tmp = nullptr ;
322
322
CanType OptionalTy;
323
- SILValue InOutOptionalParam ;
323
+ SILValue outOptionalParam ;
324
324
if (isConditional) {
325
325
// Create a temporary
326
326
OptionalTy = OptionalType::get (Dest->getType ().getASTType ())
327
327
->getImplementationType ()
328
328
->getCanonicalType ();
329
329
Tmp = Builder.createAllocStack (Loc,
330
330
SILType::getPrimitiveObjectType (OptionalTy));
331
- InOutOptionalParam = Tmp;
331
+ outOptionalParam = Tmp;
332
332
} else {
333
- InOutOptionalParam = Dest;
333
+ outOptionalParam = Dest;
334
334
}
335
335
336
336
// Emit a retain.
337
337
SILValue srcArg = Builder.emitCopyValueOperation (Loc, srcOp);
338
338
339
339
SmallVector<SILValue, 1 > Args;
340
- Args.push_back (InOutOptionalParam );
340
+ Args.push_back (outOptionalParam );
341
341
Args.push_back (srcArg);
342
342
Args.push_back (MetaTyVal);
343
343
@@ -415,13 +415,13 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
415
415
CaseBBs.emplace_back (SomeDecl, BridgeSuccessBB);
416
416
CaseBBs.emplace_back (mod.getASTContext ().getOptionalNoneDecl (), FailureBB);
417
417
418
- Builder.createSwitchEnumAddr (Loc, InOutOptionalParam , nullptr , CaseBBs);
418
+ Builder.createSwitchEnumAddr (Loc, outOptionalParam , nullptr , CaseBBs);
419
419
420
420
Builder.setInsertionPoint (FailureBB->begin ());
421
421
Builder.createDeallocStack (Loc, Tmp);
422
422
423
423
Builder.setInsertionPoint (BridgeSuccessBB);
424
- auto Addr = Builder.createUncheckedTakeEnumDataAddr (Loc, InOutOptionalParam ,
424
+ auto Addr = Builder.createUncheckedTakeEnumDataAddr (Loc, outOptionalParam ,
425
425
SomeDecl);
426
426
427
427
Builder.createCopyAddr (Loc, Addr, Dest, IsTake, IsInitialization);
0 commit comments