aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-29 22:16:25 +0000
committerDan Gohman <gohman@apple.com>2007-06-29 22:16:25 +0000
commit59310c3dc0061a0fd6842c66ac3215fbbdfe4ae4 (patch)
tree4e1da9f655dd1dad705a53d9713a9e927dab395a /include
parentc45453fa1db7a5c520208fb6ffbc9fdb823b0526 (diff)
Add an explicit keyword. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/SmallVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index bb8cef4ce8..876ca27fec 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -442,7 +442,7 @@ public:
SmallVector() : SmallVectorImpl<T>(NumTsAvailable) {
}
- SmallVector(unsigned Size, const T &Value = T())
+ explicit SmallVector(unsigned Size, const T &Value = T())
: SmallVectorImpl<T>(NumTsAvailable) {
this->reserve(Size);
while (Size--)