about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2023-08-07 20:36:14 +0200
committerNikita Popov <nikita.ppv@gmail.com>2023-08-07 20:36:14 +0200
commit78678336527cdbabaa41e5e92e6645ed712b4160 (patch)
tree24fc830803bff5211d6848a4458789dd298cd8de /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentec599192737a593d9e0242f387b1de614311c2d4 (diff)
downloadrust-78678336527cdbabaa41e5e92e6645ed712b4160.tar.gz
rust-78678336527cdbabaa41e5e92e6645ed712b4160.zip
Fix LLVM version check for ThinLTO import/export lists
These types changed in LLVM 18, not LLVM 17.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
index 06f28f432ba..48b5fd6e283 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -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;