SIL: Use getConstantFunctionType() instead of getConstantType() in a few places

This commit is contained in:
Slava Pestov
2018-01-10 13:57:54 -08:00
parent f6c7f509ba
commit e849ba5836
4 changed files with 5 additions and 18 deletions

View File

@@ -312,7 +312,7 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
ProfileCounter entryCount) {
auto name = constant.mangle();
auto constantType = Types.getConstantType(constant).castTo<SILFunctionType>();
auto constantType = Types.getConstantFunctionType(constant);
SILLinkage linkage = constant.getLinkage(forDefinition);
if (auto fn = lookUpFunction(name)) {