diff options
| author | Dan Gohman <gohman@apple.com> | 2007-06-29 22:16:25 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-06-29 22:16:25 +0000 |
| commit | 2e5e277cb36bea03e43fd9e95f4db2569d03b751 (patch) | |
| tree | 04f4c16ff9e47a6beb33884ef2d9d2647a87957b | |
| parent | fa68d069ad4085a77448144373b994a7b8721654 (diff) | |
| download | bcm5719-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.h | 2 |
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--) |

