Remove unused variable for compilation by VC++.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 15 Nov 2004 17:29:41 +0000 (17:29 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 15 Nov 2004 17:29:41 +0000 (17:29 +0000)
Patch contributed by Morten Ofstad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 746ceebfc84cecefcdedbd6b311f39c544c0cd99..8c8df54c2e08bd2630f5c30f52ea4016b91de343 100644 (file)
@@ -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)) {