summaryrefslogtreecommitdiffstats
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
commit2e5e277cb36bea03e43fd9e95f4db2569d03b751 (patch)
tree04f4c16ff9e47a6beb33884ef2d9d2647a87957b
parentfa68d069ad4085a77448144373b994a7b8721654 (diff)
downloadbcm5719-llvm-2e5e277cb36bea03e43fd9e95f4db2569d03b751.tar.gz
bcm5719-llvm-2e5e277cb36bea03e43fd9e95f4db2569d03b751.zip
Add an explicit keyword. Thanks Chris!
llvm-svn: 37819
-rw-r--r--llvm/include/llvm/ADT/SmallVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index bb8cef4ce8a..876ca27fec7 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/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--)
OpenPOWER on IntegriCloud