Skip to content

Commit

Permalink
Fix typo in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
yashssh committed Feb 28, 2025
1 parent ee3b12a commit fd81b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/newpassmanagers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ LLVMPY_CreatePassBuilder(LLVMTargetMachineRef TMRef,
TargetMachine *TM = llvm::unwrap(TMRef);
PipelineTuningOptions *PTO = llvm::unwrap(PTORef);
PassInstrumentationCallbacks *PIC = llvm::unwrap(PICRef);
#if VERSION_MAJOR < 16
#if LLVM_VERSION_MAJOR < 16
return llvm::wrap(new PassBuilder(TM, *PTO, None, PIC));
#else
return llvm::wrap(new PassBuilder(TM, *PTO, std::nullopt, PIC));
Expand Down

0 comments on commit fd81b94

Please sign in to comment.