Skip to content

Commit

Permalink
fix build with latest LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Nov 4, 2024
1 parent eac00b2 commit 8b4cbc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tv/tv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

Expand Down

0 comments on commit 8b4cbc3

Please sign in to comment.