Make the constructor explicit so we can't implicitly convert bool to
authorReid Spencer <rspencer@reidspencer.com>
Tue, 25 May 2004 19:09:25 +0000 (19:09 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 25 May 2004 19:09:25 +0000 (19:09 +0000)
SlotTable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13766 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Internal/SlotTable.h
lib/Bytecode/Writer/SlotTable.h

index 32402eabf93d64da37d6df0cca5f80da3775a0de..1d10babfe62e416ddf66168e2978120fbe8eb74a 100644 (file)
@@ -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.
   );
 
index 32402eabf93d64da37d6df0cca5f80da3775a0de..1d10babfe62e416ddf66168e2978120fbe8eb74a 100644 (file)
@@ -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.
   );