Revert "GenericSpecializer: When specializing a generic function, convert indirect parameters/result to direct parameters/result."

This reverts commit 4187959e66.

There is a crash in StdlibUnittests on i386 (Release-Assert build)
This commit is contained in:
Erik Eckstein
2016-02-23 08:29:41 -08:00
parent dcb458676b
commit 5b4c73ed3b
18 changed files with 298 additions and 964 deletions

View File

@@ -220,8 +220,7 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
SILFunction::ClassVisibility_t CV) {
if (auto fn = lookUpFunction(name)) {
assert(fn->getLoweredFunctionType() == type);
assert(fn->getLinkage() == linkage ||
stripExternalFromLinkage(fn->getLinkage()) == linkage);
assert(fn->getLinkage() == linkage);
return fn;
}