From: Simon Pilgrim Date: Wed, 8 May 2019 13:47:17 +0000 (+0000) Subject: [ADT] SmallVector::set_size - fix Wdocumentation. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99cb4ccf230a169fb0703beb56408cffa958a9b2;p=llvm [ADT] SmallVector::set_size - fix Wdocumentation. NFCI. Also fixes a Wshadow warning on MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360255 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 96a49cd9550..44db2a37306 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -63,9 +63,9 @@ public: /// of the buffer when they know that more elements are available, and only /// update the size later. This avoids the cost of value initializing elements /// which will only be overwritten. - void set_size(size_t Size) { - assert(Size <= capacity()); - this->Size = Size; + void set_size(size_t N) { + assert(N <= capacity()); + Size = N; } };