From: Reid Spencer Date: Tue, 25 May 2004 19:09:25 +0000 (+0000) Subject: Make the constructor explicit so we can't implicitly convert bool to X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a85b8cf110967cf935ce1c92b9f60de541ae51c6;p=oota-llvm.git Make the constructor explicit so we can't implicitly convert bool to SlotTable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13766 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Internal/SlotTable.h b/include/llvm/Internal/SlotTable.h index 32402eabf93..1d10babfe62 100644 --- a/include/llvm/Internal/SlotTable.h +++ b/include/llvm/Internal/SlotTable.h @@ -80,7 +80,7 @@ public: /// SlotTable will need the primitive types. If you don't need them, pass /// in true. /// @brief Default Constructor - SlotTable( + explicit SlotTable( bool dont_insert_primitives = false ///< Control insertion of primitives. ); diff --git a/lib/Bytecode/Writer/SlotTable.h b/lib/Bytecode/Writer/SlotTable.h index 32402eabf93..1d10babfe62 100644 --- a/lib/Bytecode/Writer/SlotTable.h +++ b/lib/Bytecode/Writer/SlotTable.h @@ -80,7 +80,7 @@ public: /// SlotTable will need the primitive types. If you don't need them, pass /// in true. /// @brief Default Constructor - SlotTable( + explicit SlotTable( bool dont_insert_primitives = false ///< Control insertion of primitives. );