[PATCH] D27369: [PM] Make PassManager's constructor explicit.

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288593: [PM] Make PassManager's constructor explicit. (authored by jlebar).

Changed prior to commit:
  https://reviews.llvm.org/D27369?vs=80144&id=80184#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27369

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
@@ -251,7 +251,8 @@
   /// \brief Construct a pass manager.
   ///
   /// It can be passed a flag to get debug logging as the passes are run.
-  PassManager(bool DebugLogging = false) : DebugLogging(DebugLogging) {}
+  explicit PassManager(bool DebugLogging = false) : DebugLogging(DebugLogging) {}
+
   // FIXME: These are equivalent to the default move constructor/move
   // assignment. However, using = default triggers linker errors due to the
   // explicit instantiations below. Find away to use the default and remove the


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27369.80184.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161203/ec5d316e/attachment.bin>


More information about the llvm-commits mailing list