diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-18 16:37:45 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-18 16:37:45 +0000 |
commit | 38deef9ce58b33dba34515f23fb7dbde02164c77 (patch) | |
tree | 572289f6ed7b7d2bb931e5edd9816d2e723fc787 /include | |
parent | d6b7a242d345fd79a337afd384bb586c5619cfe7 (diff) | |
download | external_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.zip external_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.tar.gz external_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/SmallVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 8a2e17b..c981d57 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -75,7 +75,7 @@ protected: // Space after 'FirstEl' is clobbered, do not add any instance vars after it. public: // Default ctor - Initialize to empty. - SmallVectorImpl(unsigned N) + explicit SmallVectorImpl(unsigned N) : Begin(reinterpret_cast<T*>(&FirstEl)), End(reinterpret_cast<T*>(&FirstEl)), Capacity(reinterpret_cast<T*>(&FirstEl)+N) { |