[llvm] r225750 - [PM] Fix another place where I was using an overly generic T&& for the

Chandler Carruth chandlerc at gmail.com
Mon Jan 12 17:44:56 PST 2015


Author: chandlerc
Date: Mon Jan 12 19:44:56 2015
New Revision: 225750

URL: http://llvm.org/viewvc/llvm-project?rev=225750&view=rev
Log:
[PM] Fix another place where I was using an overly generic T&& for the
IR unit to directly use IRUnitT& for now.

Modified:
    llvm/trunk/include/llvm/IR/PassManager.h

Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=225750&r1=225749&r2=225750&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Mon Jan 12 19:44:56 2015
@@ -828,7 +828,7 @@ template <typename AnalysisT> struct Inv
 /// 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 <typename T> PreservedAnalyses run(T &&Arg) {
+  template <typename IRUnitT> PreservedAnalyses run(IRUnitT &Arg) {
     return PreservedAnalyses::none();
   }
 





More information about the llvm-commits mailing list