summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-08 13:47:17 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-08 13:47:17 +0000
commite6224518230e6b0e9a920d587e51759bc88a19fa (patch)
tree679cc2e935e45742e7b49bf9eed0ae64c115ccfd
parentef317e0561ae92392ee93d1b4ab11d21e80acfe1 (diff)
downloadbcm5719-llvm-e6224518230e6b0e9a920d587e51759bc88a19fa.tar.gz
bcm5719-llvm-e6224518230e6b0e9a920d587e51759bc88a19fa.zip
[ADT] SmallVector::set_size - fix Wdocumentation. NFCI.
Also fixes a Wshadow warning on MSVC. llvm-svn: 360255
-rw-r--r--llvm/include/llvm/ADT/SmallVector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 96a49cd9550..44db2a37306 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/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;
}
};
OpenPOWER on IntegriCloud