mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't type-check imported decls unless referenced in the source file.
Instead, pass a LazyResolver down through name lookup, and type-check things on demand. Most of the churn here is simply passing that extra LazyResolver parameter through. This doesn't actually work yet; the later commits will fix this. Swift SVN r8643
This commit is contained in:
@@ -117,6 +117,9 @@ static SILDeclRef getBridgingFn(Optional<SILDeclRef> &cacheSlot,
|
||||
moduleName, functionName);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
assert(fd->hasType() && "bridging functions must be type-checked");
|
||||
|
||||
// Check that the function takes the expected arguments and returns the
|
||||
// expected result type.
|
||||
SILDeclRef c(fd);
|
||||
|
||||
Reference in New Issue
Block a user