[llvm-commits] [llvm] r171525 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Nadav Rotem nrotem at apple.com
Fri Jan 4 13:08:44 PST 2013


Author: nadav
Date: Fri Jan  4 15:08:44 2013
New Revision: 171525

URL: http://llvm.org/viewvc/llvm-project?rev=171525&view=rev
Log:
Fix a warning

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=171525&r1=171524&r2=171525&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Fri Jan  4 15:08:44 2013
@@ -2283,8 +2283,8 @@
 
     // Remove all of the instructions that end at this location.
     InstrList &List = TransposeEnds[i];
-    for (unsigned int i=0, e = List.size(); i < e; ++i)
-      OpenIntervals.erase(List[i]);
+    for (unsigned int j=0, e = List.size(); j < e; ++j)
+      OpenIntervals.erase(List[j]);
 
     // Count the number of live interals.
     MaxUsage = std::max(MaxUsage, OpenIntervals.size());





More information about the llvm-commits mailing list