@@ -816,9 +816,6 @@ static void writeJSON(llvm::raw_ostream &out,
816816 if (!moduleInterfacePath.empty ()) {
817817 writeJSONSingleField (out, " moduleInterfacePath" , moduleInterfacePath, 5 ,
818818 /* trailingComma=*/ true );
819- writeJSONSingleField (out, " contextHash" , swiftTextualDeps->context_hash ,
820- 5 ,
821- /* trailingComma=*/ true );
822819 out.indent (5 * 2 );
823820 out << " \" compiledModuleCandidates\" : [\n " ;
824821 for (int i = 0 ,
@@ -849,6 +846,9 @@ static void writeJSON(llvm::raw_ostream &out,
849846 }
850847 out.indent (5 * 2 );
851848 out << " ],\n " ;
849+ writeJSONSingleField (out, " contextHash" , swiftTextualDeps->context_hash ,
850+ 5 ,
851+ /* trailingComma=*/ true );
852852 bool hasBridgingHeaderPath =
853853 swiftTextualDeps->bridging_header_path .data &&
854854 get_C_string (swiftTextualDeps->bridging_header_path )[0 ] != ' \0 ' ;
@@ -1244,9 +1244,7 @@ generateFullDependencyGraph(const CompilerInstance &instance,
12441244 bridgedOverlayDependencyNames);
12451245
12461246 details->swift_textual_details = {
1247- moduleInterfacePath,
1248- create_empty_set (),
1249- bridgingHeaderPath,
1247+ moduleInterfacePath, create_empty_set (), bridgingHeaderPath,
12501248 create_set (
12511249 swiftSourceDeps->textualModuleDetails .bridgingSourceFiles ),
12521250 create_set (swiftSourceDeps->textualModuleDetails
@@ -1255,7 +1253,9 @@ generateFullDependencyGraph(const CompilerInstance &instance,
12551253 create_set (swiftSourceDeps->textualModuleDetails .buildCommandLine ),
12561254 create_set (swiftSourceDeps->bridgingHeaderBuildCommandLine ),
12571255 create_set (swiftSourceDeps->textualModuleDetails .extraPCMArgs ),
1258- /* contextHash*/ create_null (),
1256+ /* contextHash*/
1257+ create_clone (
1258+ instance.getInvocation ().getModuleScanningHash ().c_str ()),
12591259 /* isFramework*/ false ,
12601260 /* CASFS*/
12611261 create_clone (swiftSourceDeps->textualModuleDetails
0 commit comments