about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorAugie Fackler <raf@durin42.com>2025-09-26 15:38:30 -0400
committerGitHub <noreply@github.com>2025-09-26 15:38:30 -0400
commitbd860bdf267644810c8efb4a8d74fdbd0ff8383c (patch)
tree43dc8de750078ac7569ee584a346f2735667dbee /compiler/rustc_llvm/llvm-wrapper
parent4c7292aba3c7b61708e49a5ec0061d5d901affad (diff)
downloadrust-bd860bdf267644810c8efb4a8d74fdbd0ff8383c.tar.gz
rust-bd860bdf267644810c8efb4a8d74fdbd0ff8383c.zip
Fix typo in LLVM_VERSION_ macro use
Co-authored-by: Nikita Popov <github@npopov.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-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 b7637b29bca..2e9fd6754f1 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -569,7 +569,7 @@ extern "C" LLVMRustResult LLVMRustOptimize(
   }
 
   std::optional<PGOOptions> PGOOpt;
-#if LLVM_VERSION_LE(22, 0)
+#if LLVM_VERSION_LT(22, 0)
   auto FS = vfs::getRealFileSystem();
 #endif
   if (PGOGenPath) {