PassWrapper: drop unused variable for LLVM 22+

This commit is contained in:
Augie Fackler 2025-09-26 13:27:34 -04:00
parent 7a9b6d94d4
commit 4c7292aba3

View file

@ -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(