From: Simon Pilgrim Date: Thu, 9 May 2019 12:21:53 +0000 (+0000) Subject: Fix local variable shadow warning in SmallVectorBase constructor. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e55a41a30778805e66bf4529b11aa52920a2edb;p=llvm Fix local variable shadow warning in SmallVectorBase constructor. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360337 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 44db2a37306..09c3e8a2d8e 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -41,8 +41,8 @@ protected: unsigned Size = 0, Capacity; SmallVectorBase() = delete; - SmallVectorBase(void *FirstEl, size_t Capacity) - : BeginX(FirstEl), Capacity(Capacity) {} + SmallVectorBase(void *FirstEl, size_t TotalCapacity) + : BeginX(FirstEl), Capacity(TotalCapacity) {} /// This is an implementation of the grow() method which only works /// on POD-like data types and is out of line to reduce code duplication.