Don't blow up when an adapter's underlying module is missing.

Instead, emit a specific error, along with the same "SDK is missing" note
from the last commit.

Swift SVN r12416
This commit is contained in:
Jordan Rose
2014-01-16 20:08:09 +00:00
parent a5c2fedc1b
commit 5f9c652ff9
6 changed files with 48 additions and 6 deletions

View File

@@ -1156,7 +1156,6 @@ Module *ModuleFile::getModule(Identifier name) {
assert(importer && "no way to import shadowed module");
ShadowedModule = importer->loadModule(SourceLoc(),
std::make_pair(name, SourceLoc()));
assert(ShadowedModule && "missing shadowed module");
}
return ShadowedModule;