diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 156b93cb98f..d6a1c98d22e 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -828,7 +828,7 @@ template struct InvalidateAnalysisPass { /// analysis passes to be re-run to produce fresh results if any are needed. struct InvalidateAllAnalysesPass { /// \brief Run this pass over some unit of IR. - template PreservedAnalyses run(T &&Arg) { + template PreservedAnalyses run(IRUnitT &Arg) { return PreservedAnalyses::none(); }