[llvm] r187159 - Using a different loop induction variable than the enclosing scope. No functional changes intended.
Aaron Ballman
aaron at aaronballman.com
Thu Jul 25 15:09:31 PDT 2013
Author: aaronballman
Date: Thu Jul 25 17:09:31 2013
New Revision: 187159
URL: http://llvm.org/viewvc/llvm-project?rev=187159&view=rev
Log:
Using a different loop induction variable than the enclosing scope. No functional changes intended.
Modified:
llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=187159&r1=187158&r2=187159&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Thu Jul 25 17:09:31 2013
@@ -259,8 +259,8 @@ EmitRegUnitPressure(raw_ostream &OS, con
PSets.push_back(RegBank.getRegPressureSet(*PSetI).Order);
}
std::sort(PSets.begin(), PSets.end());
- for (unsigned i = 0, e = PSets.size(); i < e; ++i) {
- OS << PSets[i] << ", ";
+ for (unsigned j = 0, e = PSets.size(); j < e; ++j) {
+ OS << PSets[j] << ", ";
++StartIdx;
}
OS << "-1, \t// #" << RCSetStarts[i] << " ";
More information about the llvm-commits
mailing list