[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

@@ -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 {