Skip to content
/ rust Public
forked from rust-lang/rust

Commit 7867833

Browse files
committed
Fix LLVM version check for ThinLTO import/export lists
These types changed in LLVM 18, not LLVM 17.
1 parent ec59919 commit 7867833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ struct LLVMRustThinLTOData {
11181118

11191119
// Not 100% sure what these are, but they impact what's internalized and
11201120
// what's inlined across modules, I believe.
1121-
#if LLVM_VERSION_GE(17, 0)
1121+
#if LLVM_VERSION_GE(18, 0)
11221122
DenseMap<StringRef, FunctionImporter::ImportMapTy> ImportLists;
11231123
DenseMap<StringRef, FunctionImporter::ExportSetTy> ExportLists;
11241124
DenseMap<StringRef, GVSummaryMapTy> ModuleToDefinedGVSummaries;

0 commit comments

Comments
 (0)