ldc/ldc-1.32.2-llvm-16-context_usage.patch

15 lines
485 B
Diff

--- ldc-1.32.2/gen/optimizer.cpp.orig 2023-05-28 16:28:05.653166497 +0200
+++ ldc-1.32.2/gen/optimizer.cpp 2023-05-28 16:28:54.543949601 +0200
@@ -654,7 +654,11 @@
bool debugLogging = false;
ppo.Indent = false;
ppo.SkipAnalyses = false;
+ #if LDC_LLVM_VER < 1600
StandardInstrumentations si(debugLogging, verifyEach, ppo);
+ #else
+ StandardInstrumentations si(M->getContext(), debugLogging, /*VerifyEach=*/false, ppo);
+ #endif
si.registerCallbacks(pic, &fam);