mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Use getConstantFunctionType() instead of getConstantType() in a few places
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user