summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SmallVector.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-19 20:15:12 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-19 20:15:12 +0000
commit13d57320bd212483463d4f8992d5787b29eda5df (patch)
tree4161a4c6087bd4741c341ac401969d3cf82fda65 /include/llvm/ADT/SmallVector.h
parent9d60ba9d28c21145515878294b07c91622435632 (diff)
downloadllvm-13d57320bd212483463d4f8992d5787b29eda5df.tar.gz
llvm-13d57320bd212483463d4f8992d5787b29eda5df.tar.bz2
llvm-13d57320bd212483463d4f8992d5787b29eda5df.tar.xz
Remove warnings about unused parameters and shadowed variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallVector.h')
-rw-r--r--include/llvm/ADT/SmallVector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index 2da6a788eb..c2e2c17ad2 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -300,8 +300,8 @@ public:
bool operator==(const SmallVectorImpl &RHS) const {
if (size() != RHS.size()) return false;
- for (T *This = Begin, *That = RHS.Begin, *End = Begin+size();
- This != End; ++This, ++That)
+ for (T *This = Begin, *That = RHS.Begin, *E = Begin+size();
+ This != E; ++This, ++That)
if (*This != *That)
return false;
return true;