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.
1 parent 41e0363 commit e5ccd27Copy full SHA for e5ccd27
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