Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit d4bf3ef

Browse files
committed
Fix StandardInstrumentations constructor for LLVM 16
1 parent 67645df commit d4bf3ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

omniscidb/QueryEngine/Compiler/HelperFunctions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ void optimize_ir(llvm::Function* query_func,
212212
llvm::ModulePassManager MPM;
213213
llvm::FunctionPassManager FPM;
214214
if (co.dump_llvm_ir_after_each_pass) {
215+
#if LLVM_VERSION_MAJOR > 15
216+
llvm::StandardInstrumentations SI(llvm_module->getContext(), false);
217+
#else
215218
llvm::StandardInstrumentations SI(false);
219+
#endif
216220
SI.registerCallbacks(PIC);
217221
DUMP_MODULE(llvm_module, ir_dump_dir + "IR_UNOPT");
218222
}

0 commit comments

Comments
 (0)