@@ -107,8 +107,7 @@ static bool containsLargeLoadable(GenericEnvironment *GenericEnv,
107
107
currSILFunctionType->getParameters (), Mod)) {
108
108
return true ;
109
109
}
110
- } else if (auto *currSILBlockType =
111
- dyn_cast<SILBlockStorageType>(currCanType.getPointer ())) {
110
+ } else if (isa<SILBlockStorageType>(currCanType.getPointer ())) {
112
111
continue ;
113
112
} else {
114
113
switch (param.getConvention ()) {
@@ -303,8 +302,7 @@ static SILType getNewSILType(GenericEnvironment *GenericEnv,
303
302
return newSILType;
304
303
}
305
304
CanType currCanType = storageType.getSwiftRValueType ();
306
- if (auto *currSILBlockType =
307
- dyn_cast<SILBlockStorageType>(currCanType.getPointer ())) {
305
+ if (isa<SILBlockStorageType>(currCanType.getPointer ())) {
308
306
return storageType;
309
307
}
310
308
if (SILFunctionType *currSILFunctionType =
@@ -693,14 +691,14 @@ void LargeValueVisitor::visitTupleInst(SILInstruction *instr) {
693
691
694
692
void LargeValueVisitor::visitAllocStackInst (AllocStackInst *instr) {
695
693
SILType currSILType = instr->getType ().getObjectType ();
696
- if (auto * fType = getInnerFunctionType (currSILType)) {
694
+ if (getInnerFunctionType (currSILType)) {
697
695
pass.allocStackInstsToMod .push_back (instr);
698
696
}
699
697
}
700
698
701
699
void LargeValueVisitor::visitPointerToAddressInst (PointerToAddressInst *instr) {
702
700
SILType currSILType = instr->getType ().getObjectType ();
703
- if (auto * fType = getInnerFunctionType (currSILType)) {
701
+ if (getInnerFunctionType (currSILType)) {
704
702
pass.pointerToAddrkInstsToMod .push_back (instr);
705
703
}
706
704
}
0 commit comments