mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user