We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fc83ae + e5ccd27 commit 0f28e40Copy full SHA for 0f28e40
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -627,7 +627,11 @@ LLVMRustOptimize(
627
bool DebugPassManager = false;
628
629
PassInstrumentationCallbacks PIC;
630
+#if LLVM_VERSION_LT(16, 0)
631
StandardInstrumentations SI(DebugPassManager);
632
+#else
633
+ StandardInstrumentations SI(TheModule->getContext(), DebugPassManager);
634
+#endif
635
SI.registerCallbacks(PIC);
636
637
if (LlvmSelfProfiler){
0 commit comments