From 8e6d7148c19316bc77c6570b9c7d24ed9b5f0775 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 25 May 2004 19:09:25 +0000 Subject: [PATCH] Make the constructor explicit so we can't implicitly convert bool to SlotTable. llvm-svn: 13766 --- include/llvm/Internal/SlotTable.h | 2 +- lib/Bytecode/Writer/SlotTable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. );