Skip to content

Commit

Permalink
Fix version bound.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Oct 24, 2023
1 parent 365987f commit a1d637e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/LLVMExtra/lib/newpm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ DEFINE_SIMPLE_CONVERSION_FUNCTIONS(llvm::StandardInstrumentations, LLVMStandardI
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(llvm::PassInstrumentationCallbacks, LLVMPassInstrumentationCallbacksRef)

LLVMStandardInstrumentationsRef LLVMCreateStandardInstrumentations(LLVMContextRef C, LLVMBool DebugLogging, LLVMBool VerifyEach) {
#if LLVM_VERSION_MAJOR >= 15
#if LLVM_VERSION_MAJOR >= 16
return wrap(new llvm::StandardInstrumentations(*unwrap(C), DebugLogging, VerifyEach));
#else
return wrap(new llvm::StandardInstrumentations(DebugLogging, VerifyEach));
Expand Down

0 comments on commit a1d637e

Please sign in to comment.