diff options
| author | Augie Fackler <augie@google.com> | 2025-09-26 13:27:34 -0400 |
|---|---|---|
| committer | Augie Fackler <augie@google.com> | 2025-09-26 13:27:34 -0400 |
| commit | 4c7292aba3c7b61708e49a5ec0061d5d901affad (patch) | |
| tree | 48f0a2d9cf35a6ca8874cc34ed66f45ac946cfc2 /compiler/rustc_llvm | |
| parent | 7a9b6d94d41720a206d0e52e4827bac45d9a7bc3 (diff) | |
| download | rust-4c7292aba3c7b61708e49a5ec0061d5d901affad.tar.gz rust-4c7292aba3c7b61708e49a5ec0061d5d901affad.zip | |
PassWrapper: drop unused variable for LLVM 22+
Diffstat (limited to 'compiler/rustc_llvm')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 136b6e9bf50..b7637b29bca 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -569,7 +569,9 @@ extern "C" LLVMRustResult LLVMRustOptimize( } std::optional<PGOOptions> PGOOpt; +#if LLVM_VERSION_LE(22, 0) auto FS = vfs::getRealFileSystem(); +#endif if (PGOGenPath) { assert(!PGOUsePath && !PGOSampleUsePath); PGOOpt = PGOOptions( |
