Skip to content

Commit

Permalink
[PM] Make PassManager's constructor explicit.
Browse files Browse the repository at this point in the history
Reviewers: chandlerc

Subscribers: silvas, llvm-commits, mehdi_amini

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

llvm-svn: 288593
  • Loading branch information
Justin Lebar committed Dec 3, 2016
1 parent 67140f4 commit 125b13a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/include/llvm/IR/PassManager.h
Expand Up @@ -251,7 +251,8 @@ class PassManager : public PassInfoMixin<
/// \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
Expand Down

0 comments on commit 125b13a

Please sign in to comment.