Skip to content

Commit 4c7292a

Browse files
committed
PassWrapper: drop unused variable for LLVM 22+
1 parent 7a9b6d9 commit 4c7292a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ extern "C" LLVMRustResult LLVMRustOptimize(
569569
}
570570

571571
std::optional<PGOOptions> PGOOpt;
572+
#if LLVM_VERSION_LE(22, 0)
572573
auto FS = vfs::getRealFileSystem();
574+
#endif
573575
if (PGOGenPath) {
574576
assert(!PGOUsePath && !PGOSampleUsePath);
575577
PGOOpt = PGOOptions(

0 commit comments

Comments
 (0)