From 8b4cbc35dfc22e57ae686db86ecad3c7169e9e81 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Mon, 4 Nov 2024 14:08:28 +0000 Subject: [PATCH] fix build with latest LLVM --- tv/tv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tv/tv.cpp b/tv/tv.cpp index 2f335bef7..5e0b0ab08 100644 --- a/tv/tv.cpp +++ b/tv/tv.cpp @@ -705,7 +705,8 @@ llvmGetPassPluginInfo() { // ClangTVFinalizePass internally checks whether we're running clang tv // and finalizes resources then. PB.registerOptimizerLastEPCallback( - [](llvm::ModulePassManager &MPM, llvm::OptimizationLevel) { + [](llvm::ModulePassManager &MPM, llvm::OptimizationLevel, + llvm::ThinOrFullLTOPhase) { MPM.addPass(ClangTVFinalizePass()); });