Skip to content

Commit fd81b94

Browse files
committed
Fix typo in version check
1 parent ee3b12a commit fd81b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffi/newpassmanagers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ LLVMPY_CreatePassBuilder(LLVMTargetMachineRef TMRef,
339339
TargetMachine *TM = llvm::unwrap(TMRef);
340340
PipelineTuningOptions *PTO = llvm::unwrap(PTORef);
341341
PassInstrumentationCallbacks *PIC = llvm::unwrap(PICRef);
342-
#if VERSION_MAJOR < 16
342+
#if LLVM_VERSION_MAJOR < 16
343343
return llvm::wrap(new PassBuilder(TM, *PTO, None, PIC));
344344
#else
345345
return llvm::wrap(new PassBuilder(TM, *PTO, std::nullopt, PIC));

0 commit comments

Comments
 (0)