llvm.org GIT mirror llvm / 505d1e7
TableGen: Fix a confusing use of both i and I as variables. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275450 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 4 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
427427
428428 std::vector llvm::LoadIntrinsics(const RecordKeeper &RC,
429429 bool TargetOnly) {
430 std::vector I = RC.getAllDerivedDefinitions("Intrinsic");
430 std::vector Defs = RC.getAllDerivedDefinitions("Intrinsic");
431431
432432 std::vector Result;
433 Result.reserve(I.size());
434
435 for (unsigned i = 0, e = I.size(); i != e; ++i) {
436 bool isTarget = I[i]->getValueAsBit("isTarget");
433 Result.reserve(Defs.size());
434
435 for (unsigned I = 0, e = Defs.size(); I != e; ++I) {
436 bool isTarget = Defs[I]->getValueAsBit("isTarget");
437437 if (isTarget == TargetOnly)
438 Result.push_back(CodeGenIntrinsic(I[i]));
438 Result.push_back(CodeGenIntrinsic(Defs[I]));
439439 }
440440 std::sort(Result.begin(), Result.end(),
441441 [](const CodeGenIntrinsic& LHS, const CodeGenIntrinsic& RHS) {