mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user