[llvm] r275450 - TableGen: Fix a confusing use of both i and I as variables. NFC
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 11:08:33 PDT 2016
Author: bogner
Date: Thu Jul 14 13:08:33 2016
New Revision: 275450
URL: http://llvm.org/viewvc/llvm-project?rev=275450&view=rev
Log:
TableGen: Fix a confusing use of both i and I as variables. NFC
Modified:
llvm/trunk/utils/TableGen/CodeGenTarget.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.cpp?rev=275450&r1=275449&r2=275450&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenTarget.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenTarget.cpp Thu Jul 14 13:08:33 2016
@@ -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) {
More information about the llvm-commits
mailing list