mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Reinstate "GenericSpecializer: When specializing a generic function, convert indirect parameters/result to direct parameters/result.""
This reinstates commit 4187959e66.
The exposed crash in the ClosureSpecializer is fixed.
This commit is contained in:
@@ -220,7 +220,8 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
|
||||
SILFunction::ClassVisibility_t CV) {
|
||||
if (auto fn = lookUpFunction(name)) {
|
||||
assert(fn->getLoweredFunctionType() == type);
|
||||
assert(fn->getLinkage() == linkage);
|
||||
assert(fn->getLinkage() == linkage ||
|
||||
stripExternalFromLinkage(fn->getLinkage()) == linkage);
|
||||
return fn;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user