@@ -823,9 +823,6 @@ static void writeJSON(llvm::raw_ostream &out,
823823 if (!moduleInterfacePath.empty ()) {
824824 writeJSONSingleField (out, " moduleInterfacePath" , moduleInterfacePath, 5 ,
825825 /* trailingComma=*/ true );
826- writeJSONSingleField (out, " contextHash" , swiftTextualDeps->context_hash ,
827- 5 ,
828- /* trailingComma=*/ true );
829826 out.indent (5 * 2 );
830827 out << " \" compiledModuleCandidates\" : [\n " ;
831828 for (int i = 0 ,
@@ -856,6 +853,9 @@ static void writeJSON(llvm::raw_ostream &out,
856853 }
857854 out.indent (5 * 2 );
858855 out << " ],\n " ;
856+ writeJSONSingleField (out, " contextHash" , swiftTextualDeps->context_hash ,
857+ 5 ,
858+ /* trailingComma=*/ true );
859859 bool hasBridgingHeaderPath =
860860 swiftTextualDeps->bridging_header_path .data &&
861861 get_C_string (swiftTextualDeps->bridging_header_path )[0 ] != ' \0 ' ;
@@ -1251,9 +1251,7 @@ generateFullDependencyGraph(const CompilerInstance &instance,
12511251 bridgedOverlayDependencyNames);
12521252
12531253 details->swift_textual_details = {
1254- moduleInterfacePath,
1255- create_empty_set (),
1256- bridgingHeaderPath,
1254+ moduleInterfacePath, create_empty_set (), bridgingHeaderPath,
12571255 create_set (
12581256 swiftSourceDeps->textualModuleDetails .bridgingSourceFiles ),
12591257 create_set (swiftSourceDeps->textualModuleDetails
@@ -1262,7 +1260,9 @@ generateFullDependencyGraph(const CompilerInstance &instance,
12621260 create_set (swiftSourceDeps->textualModuleDetails .buildCommandLine ),
12631261 create_set (swiftSourceDeps->bridgingHeaderBuildCommandLine ),
12641262 create_set (swiftSourceDeps->textualModuleDetails .extraPCMArgs ),
1265- /* contextHash*/ create_null (),
1263+ /* contextHash*/
1264+ create_clone (
1265+ instance.getInvocation ().getModuleScanningHash ().c_str ()),
12661266 /* isFramework*/ false ,
12671267 /* CASFS*/
12681268 create_clone (swiftSourceDeps->textualModuleDetails
0 commit comments