Skip to content

Commit 41a7d7c

Browse files
committed
[CastOptimizer] Use TypeConverter to lower type, 2
1 parent ef6bd64 commit 41a7d7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Utils/CastOptimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
331331
OptionalTy = OptionalType::get(Dest->getType().getASTType())
332332
->getImplementationType()
333333
->getCanonicalType();
334-
Tmp = Builder.createAllocStack(Loc,
335-
F->getLoweredType(OptionalTy));
334+
Tmp = Builder.createAllocStack(Loc, F->getLoweredType(OptionalTy));
336335
outOptionalParam = Tmp;
337336
} else {
338337
outOptionalParam = Dest;

0 commit comments

Comments
 (0)