Skip to content

Commit 547eea5

Browse files
authored
Merge pull request #23288 from slavapestov/start-using-irgen-resilience-expansion
IRGen: Use maximal resilience expansion to lower SIL types
2 parents 3008fba + a7ea802 commit 547eea5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/IRGen/GenType.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,29 +1434,25 @@ const TypeInfo &IRGenFunction::getTypeInfo(SILType T) {
14341434

14351435
/// Return the SIL-lowering of the given type.
14361436
SILType IRGenModule::getLoweredType(AbstractionPattern orig, Type subst) const {
1437-
// FIXME: Expansion
14381437
return getSILTypes().getLoweredType(orig, subst,
1439-
ResilienceExpansion::Minimal);
1438+
ResilienceExpansion::Maximal);
14401439
}
14411440

14421441
/// Return the SIL-lowering of the given type.
14431442
SILType IRGenModule::getLoweredType(Type subst) const {
1444-
// FIXME: Expansion
14451443
return getSILTypes().getLoweredType(subst,
1446-
ResilienceExpansion::Minimal);
1444+
ResilienceExpansion::Maximal);
14471445
}
14481446

14491447
/// Return the SIL-lowering of the given type.
14501448
const Lowering::TypeLowering &IRGenModule::getTypeLowering(SILType type) const {
1451-
// FIXME: Expansion
14521449
return getSILTypes().getTypeLowering(type,
1453-
ResilienceExpansion::Minimal);
1450+
ResilienceExpansion::Maximal);
14541451
}
14551452

14561453
bool IRGenModule::isTypeABIAccessible(SILType type) const {
1457-
// FIXME: Expansion
14581454
return getSILModule().isTypeABIAccessible(type,
1459-
ResilienceExpansion::Minimal);
1455+
ResilienceExpansion::Maximal);
14601456
}
14611457

14621458
/// Get a pointer to the storage type for the given type. Note that,

0 commit comments

Comments
 (0)