[PATCH] D27368: [PM] Make PreservedAnalyses::preserved take its parameter by const ref.

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288592: [PM] Make PreservedAnalyses::preserved take its parameter by const ref. (authored by jlebar).

Changed prior to commit:
  https://reviews.llvm.org/D27368?vs=80143&id=80183#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27368

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
@@ -137,7 +137,7 @@
   }
 
   /// \brief Query whether all of the analyses in the set are preserved.
-  bool preserved(PreservedAnalyses Arg) {
+  bool preserved(const PreservedAnalyses& Arg) {
     if (Arg.areAllPreserved())
       return areAllPreserved();
     for (auto ID : Arg.PreservedAnalysisIDs)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27368.80183.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161203/9dcd82d1/attachment.bin>


More information about the llvm-commits mailing list