This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
compiler/rustc_llvm/llvm-wrapper Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1158,13 +1158,6 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
11581158 // Otherwise, we sometimes lose `static` values -- see #60184.
11591159 computeDeadSymbolsWithConstProp (Ret->Index , Ret->GUIDPreservedSymbols ,
11601160 deadIsPrevailing, /* ImportEnabled = */ false );
1161- ComputeCrossModuleImport (
1162- Ret->Index ,
1163- Ret->ModuleToDefinedGVSummaries ,
1164- Ret->ImportLists ,
1165- Ret->ExportLists
1166- );
1167-
11681161 // Resolve LinkOnce/Weak symbols, this has to be computed early be cause it
11691162 // impacts the caching.
11701163 //
@@ -1181,6 +1174,16 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
11811174 return true ;
11821175 return Prevailing->second == S;
11831176 };
1177+ ComputeCrossModuleImport (
1178+ Ret->Index ,
1179+ Ret->ModuleToDefinedGVSummaries ,
1180+ #if LLVM_VERSION_GE(17, 0)
1181+ isPrevailing,
1182+ #endif
1183+ Ret->ImportLists ,
1184+ Ret->ExportLists
1185+ );
1186+
11841187 auto recordNewLinkage = [&](StringRef ModuleIdentifier,
11851188 GlobalValue::GUID GUID,
11861189 GlobalValue::LinkageTypes NewLinkage) {
You can’t perform that action at this time.
0 commit comments