OSDN Git Service

Rename the variable to fix a warning. Thanks Andy Gibbs.
authorNadav Rotem <nrotem@apple.com>
Mon, 24 Jun 2013 15:59:47 +0000 (15:59 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 24 Jun 2013 15:59:47 +0000 (15:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184749 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index d0e3fe2..6837e51 100644 (file)
@@ -872,8 +872,8 @@ bool FuncSLP::vectorizeStoreChain(ArrayRef<Value *> Chain, int CostThreshold) {
       vectorizeTree(Operands);
 
       // Remove the scalar stores.
-      for (int i = 0, e = VF; i < e; ++i)
-        cast<Instruction>(Operands[i])->eraseFromParent();
+      for (int j = 0, e = VF; j < e; ++j)
+        cast<Instruction>(Operands[j])->eraseFromParent();
 
       // Move to the next bundle.
       i += VF - 1;