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:
@@ -642,7 +642,7 @@ SILFunction *PromotedParamCloner::initCloned(SILFunction *Orig,
|
||||
OrigFTI->getGenericSignature());
|
||||
paramTy = boxTy->getFieldType(Orig->getModule(), 0);
|
||||
}
|
||||
auto promotedParam = SILParameterInfo(paramTy.getSwiftRValueType(),
|
||||
auto promotedParam = SILParameterInfo(paramTy.getASTType(),
|
||||
ParameterConvention::Indirect_InoutAliasable);
|
||||
ClonedInterfaceArgTys.push_back(promotedParam);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user