[serialization] Don't keep a ModuleFile around when missing dependencies.

All we need is the skeleton Module to let us know not to try again. This
was previously leading to a use-after-free, caught by Guard Malloc.
Thanks, Argyrios!

Swift SVN r6267
This commit is contained in:
Jordan Rose
2013-07-15 18:36:22 +00:00
parent 075539b0f5
commit 960141eb8e

View File

@@ -211,6 +211,8 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
diag::serialization_missing_dependencies,
missingNames);
}
module->File = nullptr;
}
}