Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2018-05-02 15:09:04 -07:00
18 changed files with 112 additions and 124 deletions

View File

@@ -1447,6 +1447,13 @@ Status ModuleFile::associateWithFileContext(FileUnit *file,
dependency.Import = {ctx.AllocateCopy(llvm::makeArrayRef(accessPathElem)),
module};
}
if (!module->hasResolvedImports()) {
// Notice that we check this condition /after/ recording the module that
// caused the problem. Clients need to be able to track down what the
// cycle was.
return error(Status::CircularDependency);
}
}
if (missingDependency) {