From a946190351e561350a9ea71c8db31ffded6d80df Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 25 Jul 2013 22:09:31 +0000 Subject: Using a different loop induction variable than the enclosing scope. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187159 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/RegisterInfoEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/TableGen') diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 4d423e484f..731dccf75e 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -259,8 +259,8 @@ EmitRegUnitPressure(raw_ostream &OS, const CodeGenRegBank &RegBank, 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] << " "; -- cgit v1.2.3