SIL: Plumb TypeExpansionContext through SIL

This commit is contained in:
Arnold Schwaighofer
2019-11-04 11:56:44 -08:00
parent e67b96139d
commit 9ecda0c574
21 changed files with 315 additions and 202 deletions

View File

@@ -186,7 +186,7 @@ static bool isTypeMetadataForLayoutAccessible(SILModule &M, SILType type) {
/// ABI-private, we can always at least fetch its metadata and use the
/// value witness table stored there.
bool SILModule::isTypeABIAccessible(SILType type,
ResilienceExpansion forExpansion) {
TypeExpansionContext forExpansion) {
// Fixed-ABI types can have value operations done without metadata.
if (Types.getTypeLowering(type, forExpansion).isFixedABI())
return true;