From: Reid Spencer Date: Mon, 15 Nov 2004 17:29:41 +0000 (+0000) Subject: Remove unused variable for compilation by VC++. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=96326f9d312585532c95dcc31626f45f16cd5dd8;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 746ceebfc84..8c8df54c2e0 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(*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(*I)) {