aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorEvgeniy Brevnov <ybrevnov@azul.com>2022-11-01 13:42:07 +0700
committerEvgeniy Brevnov <ybrevnov@azul.com>2022-11-25 15:13:04 +0700
commit721f975d3518403502f770ce11f3f02509b30c5b (patch)
tree73b61cfab32efd7ff084914eee1e4b9e1bb6d855 /llvm/lib/LTO/LTOBackend.cpp
parent8e3545a64edbd4cb00ef60cce06ad0f214c0e041 (diff)
downloadllvm-721f975d3518403502f770ce11f3f02509b30c5b.zip
llvm-721f975d3518403502f770ce11f3f02509b30c5b.tar.gz
llvm-721f975d3518403502f770ce11f3f02509b30c5b.tar.bz2
Use PassGate from LLVMContext if any otherwise global one
Differential Revision: https://reviews.llvm.org/D137149
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 5a8f60d..9298e45 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -256,7 +256,7 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
ModuleAnalysisManager MAM;
PassInstrumentationCallbacks PIC;
- StandardInstrumentations SI(Conf.DebugPassManager);
+ StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager);
SI.registerCallbacks(PIC, &FAM);
PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC);