[PATCH] D27370: [PM] Make AnalysisManager::registerPass take its parameter by universal reference.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 3 11:59:36 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288594: [PM] Make AnalysisManager::registerPass take its parameter by universal… (authored by jlebar).

Changed prior to commit:
  https://reviews.llvm.org/D27370?vs=80145&id=80185#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27370

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


Index: llvm/trunk/include/llvm/IR/PassManager.h
===================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h
+++ llvm/trunk/include/llvm/IR/PassManager.h
@@ -548,7 +548,8 @@
   /// interface also lends itself to minimizing the number of times we have to
   /// do lookups for analyses or construct complex passes only to throw them
   /// away.
-  template <typename PassBuilderT> bool registerPass(PassBuilderT PassBuilder) {
+  template <typename PassBuilderT>
+  bool registerPass(PassBuilderT &&PassBuilder) {
     typedef decltype(PassBuilder()) PassT;
     typedef detail::AnalysisPassModel<IRUnitT, PassT, PreservedAnalyses,
                                       Invalidator, ExtraArgTs...>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27370.80185.patch
Type: text/x-patch
Size: 751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161203/91dc21ce/attachment.bin>


More information about the llvm-commits mailing list