From bd6d5760d3989fec42ebaf362a11fd5d6a044e0e Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Sat, 3 Dec 2016 19:49:15 +0000 Subject: [PATCH] [PM] Make PassManager's constructor explicit. Reviewers: chandlerc Subscribers: silvas, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D27369 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288593 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/PassManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 7f810301dd4..a746ebb469d 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -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 -- 2.50.1