[Explicit Module Builds] Do not attempt to re-load module dependency from

interface for index.

An explicit module build compile is unable to do so because it does not have
access to the interfaces. Doing this in the first place is a workaround for a
known bug, which will require to be solved at the root cause instead (e.g.
Deserialization Safety feature).

Resolves rdar://113165898
This commit is contained in:
Artem Chikin
2023-08-25 12:18:32 -07:00
parent 5ba4ce568b
commit e0275f4f0e
4 changed files with 26 additions and 11 deletions

View File

@@ -395,6 +395,7 @@ static void emitIndexDataForSourceFile(SourceFile &PrimarySourceFile,
Opts.IndexIgnoreStdlib,
Opts.IndexIncludeLocals,
isDebugCompilation,
Opts.DisableImplicitModules,
Invocation.getTargetTriple(),
*Instance.getDependencyTracker(),
Invocation.getIRGenOptions().FilePrefixMap);