diff options
| author | Justin Lebar <jlebar@google.com> | 2016-12-03 19:49:15 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-12-03 19:49:15 +0000 |
| commit | 125b13abea840ad17213a8421c55d9551ca277bb (patch) | |
| tree | 8843217eef147eb1531ed3fc2ac13942633dd110 | |
| parent | 67140f4455a8868c65fc8aac5495d1a729ac566a (diff) | |
| download | bcm5719-llvm-125b13abea840ad17213a8421c55d9551ca277bb.tar.gz bcm5719-llvm-125b13abea840ad17213a8421c55d9551ca277bb.zip | |
[PM] Make PassManager's constructor explicit.
Reviewers: chandlerc
Subscribers: silvas, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D27369
llvm-svn: 288593
| -rw-r--r-- | llvm/include/llvm/IR/PassManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index 7f810301dd4..a746ebb469d 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/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 |

