aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-15 17:29:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-15 17:29:41 +0000
commit96326f9d312585532c95dcc31626f45f16cd5dd8 (patch)
tree4f12de37e159026eb1972008d680e74cd5707c8b
parent9befac48d7f1650b13b43c552c0ec6912c69b1c2 (diff)
Remove unused variable for compilation by VC++.
Patch contributed by Morten Ofstad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17830 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 746ceebfc8..8c8df54c2e 100644
--- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -336,7 +336,7 @@ void SROA::CanonicalizeAllocaUsers(AllocationInst *AI) {
for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end();
UI != E; ) {
GetElementPtrInst *GEPI = cast<GetElementPtrInst>(*UI++);
- gep_type_iterator I = gep_type_begin(GEPI), E = gep_type_end(GEPI);
+ gep_type_iterator I = gep_type_begin(GEPI);
++I;
if (const ArrayType *AT = dyn_cast<ArrayType>(*I)) {