From 85474275e1032bf3f52f144794e496591b763e0d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 9 May 2019 12:21:53 +0000 Subject: [PATCH] Fix local variable shadow warning in SmallVectorBase constructor. NFCI. llvm-svn: 360337 --- llvm/include/llvm/ADT/SmallVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h index 44db2a37306a..09c3e8a2d8e0 100644 --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/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.