Fix LLVM version check for ThinLTO import/export lists

These types changed in LLVM 18, not LLVM 17.
This commit is contained in:
Nikita Popov 2023-08-07 20:36:14 +02:00
parent ec59919273
commit 7867833652

View File

@ -1118,7 +1118,7 @@ struct LLVMRustThinLTOData {
// Not 100% sure what these are, but they impact what's internalized and
// what's inlined across modules, I believe.
#if LLVM_VERSION_GE(17, 0)
#if LLVM_VERSION_GE(18, 0)
DenseMap<StringRef, FunctionImporter::ImportMapTy> ImportLists;
DenseMap<StringRef, FunctionImporter::ExportSetTy> ExportLists;
DenseMap<StringRef, GVSummaryMapTy> ModuleToDefinedGVSummaries;