[SIL] NFC: Rename misleading getSwiftRValueType() to getASTType()

Reference storage types are not RValues. Also, use more SILType helper
methods to avoid line wrap.
This commit is contained in:
David Zarzycki
2018-05-04 07:19:57 -04:00
parent 0c0219cb80
commit 8c0c55539f
83 changed files with 573 additions and 600 deletions

View File

@@ -144,8 +144,8 @@ bool ReleaseDevirtualizer::createDeallocCall(SILType AllocType,
return false;
CanSILFunctionType DeallocType = Dealloc->getLoweredFunctionType();
auto *NTD = AllocType.getSwiftRValueType()->getAnyNominal();
auto AllocSubMap = AllocType.getSwiftRValueType()
auto *NTD = AllocType.getASTType()->getAnyNominal();
auto AllocSubMap = AllocType.getASTType()
->getContextSubstitutionMap(M.getSwiftModule(), NTD);
DeallocType = DeallocType->substGenericArgs(M, AllocSubMap);