[llvm] r360337 - Fix local variable shadow warning in SmallVectorBase constructor. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 05:21:53 PDT 2019
Author: rksimon
Date: Thu May 9 05:21:53 2019
New Revision: 360337
URL: http://llvm.org/viewvc/llvm-project?rev=360337&view=rev
Log:
Fix local variable shadow warning in SmallVectorBase constructor. NFCI.
Modified:
llvm/trunk/include/llvm/ADT/SmallVector.h
Modified: llvm/trunk/include/llvm/ADT/SmallVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallVector.h?rev=360337&r1=360336&r2=360337&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Thu May 9 05:21:53 2019
@@ -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.
More information about the llvm-commits
mailing list