aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/SlotTable.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-05-25 19:09:25 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-05-25 19:09:25 +0000
commita85b8cf110967cf935ce1c92b9f60de541ae51c6 (patch)
tree681ac85371f19f5e63715762ceb6025049580d48 /lib/Bytecode/Writer/SlotTable.h
parent3751bd607b4136c6f69769ecd3d346fe8e1d63b0 (diff)
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
Diffstat (limited to 'lib/Bytecode/Writer/SlotTable.h')
-rw-r--r--lib/Bytecode/Writer/SlotTable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/SlotTable.h b/lib/Bytecode/Writer/SlotTable.h
index 32402eabf9..1d10babfe6 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.
);