TableGen: Fix a confusing use of both i and I as variables. NFC
authorJustin Bogner <mail@justinbogner.com>
Thu, 14 Jul 2016 18:08:33 +0000 (18:08 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 14 Jul 2016 18:08:33 +0000 (18:08 +0000)
llvm-svn: 275450

llvm/utils/TableGen/CodeGenTarget.cpp

index 85fc4be..08bb332 100644 (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) {