Fix build against llvm trunk
MODIFY
tv/tv.cpp
tv/tv.cpp
@@ -499,8 +499,10 @@ llvmGetPassPluginInfo() {
[](llvm::PassBuilder &PB) {
is_clangtv = true;
PB.registerPipelineStartEPCallback(
- [](llvm::ModulePassManager &MPM) { MPM.addPass(TVInitPass()); }
- );
+ [](llvm::ModulePassManager &MPM,
+ llvm::PassBuilder::OptimizationLevel) {
+ MPM.addPass(TVInitPass());
+ });
PB.registerOptimizerLastEPCallback(
[](llvm::ModulePassManager &MPM,
llvm::PassBuilder::OptimizationLevel) {

Fix build against llvm trunk (#568)