]> granicus.if.org Git - llvm/commitdiff
Fix local variable shadow warning in SmallVectorBase constructor. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 May 2019 12:21:53 +0000 (12:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 May 2019 12:21:53 +0000 (12:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360337 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index 44db2a37306ac8bae58c36ef414b12afd7755983..09c3e8a2d8e07a3d8fd3662881c969af3f571586 100644 (file)
@@ -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.