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()); });