TableGen: Fix a confusing use of both i and I as variables. NFC

llvm-svn: 275450
This commit is contained in:
Justin Bogner 2016-07-14 18:08:33 +00:00
parent dd5c7f9313
commit 1e6416151f
1 changed files with 5 additions and 5 deletions

View File

@ -428,15 +428,15 @@ ComplexPattern::ComplexPattern(Record *R) {
std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC,
bool TargetOnly) {
std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic");
std::vector<Record*> Defs = RC.getAllDerivedDefinitions("Intrinsic");
std::vector<CodeGenIntrinsic> Result;
Result.reserve(I.size());
Result.reserve(Defs.size());
for (unsigned i = 0, e = I.size(); i != e; ++i) {
bool isTarget = I[i]->getValueAsBit("isTarget");
for (unsigned I = 0, e = Defs.size(); I != e; ++I) {
bool isTarget = Defs[I]->getValueAsBit("isTarget");
if (isTarget == TargetOnly)
Result.push_back(CodeGenIntrinsic(I[i]));
Result.push_back(CodeGenIntrinsic(Defs[I]));
}
std::sort(Result.begin(), Result.end(),
[](const CodeGenIntrinsic& LHS, const CodeGenIntrinsic& RHS) {