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

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 02:45:50 PST 2018


nhaehnle created this revision.
nhaehnle added reviewers: arsenm, craig.topper, tra, MartinO.
Herald added a subscriber: wdng.
nhaehnle added a dependency: D43560: TableGen: BitInit and VarBitInit are typed.

Change-Id: Ibd762d88fd2d1e2cc116a259e2a27a5e9f9a8b10


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.135222.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180221/32055ce2/attachment.bin>


More information about the llvm-commits mailing list