[PATCH] D43561: TableGen: Avoid using resolveListElementReference in TGParser

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 14:51:26 PST 2018


nhaehnle updated this revision to Diff 135525.
nhaehnle added a comment.

Better summary.


Repository:
  rL LLVM

https://reviews.llvm.org/D43561

Files:
  lib/TableGen/TGParser.cpp


Index: lib/TableGen/TGParser.cpp
===================================================================
--- lib/TableGen/TGParser.cpp
+++ lib/TableGen/TGParser.cpp
@@ -317,7 +317,7 @@
 
     // Process each value.
     for (unsigned i = 0; i < List->size(); ++i) {
-      Init *ItemVal = List->resolveListElementReference(*CurRec, nullptr, i);
+      Init *ItemVal = List->getElement(i)->resolveReferences(*CurRec, nullptr);
       IterVals.push_back(IterRecord(CurLoop.IterVar, ItemVal));
       if (ProcessForeachDefs(CurRec, Loc, IterVals))
         return true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43561.135525.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180222/2000f4f8/attachment.bin>


More information about the llvm-commits mailing list