[PM] Make PassManager's constructor explicit.
authorJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:15 +0000 (19:49 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:15 +0000 (19:49 +0000)
Reviewers: chandlerc

Subscribers: silvas, llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D27369

llvm-svn: 288593

llvm/include/llvm/IR/PassManager.h

index 7f81030..a746ebb 100644 (file)
@@ -251,7 +251,8 @@ public:
   /// \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