[PATCH] D44624: TableGen: Remove redundant loop in ListInit::resolveReferences
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 21 10:17:10 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328118: TableGen: Remove redundant loop in ListInit::resolveReferences (authored by nha, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D44624
Files:
llvm/trunk/lib/TableGen/Record.cpp
Index: llvm/trunk/lib/TableGen/Record.cpp
===================================================================
--- llvm/trunk/lib/TableGen/Record.cpp
+++ llvm/trunk/lib/TableGen/Record.cpp
@@ -634,13 +634,8 @@
bool Changed = false;
for (Init *CurElt : getValues()) {
- Init *E;
-
- do {
- E = CurElt;
- CurElt = CurElt->resolveReferences(R);
- Changed |= E != CurElt;
- } while (E != CurElt);
+ Init *E = CurElt->resolveReferences(R);
+ Changed |= E != CurElt;
Resolved.push_back(E);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44624.139323.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180321/81285319/attachment.bin>
More information about the llvm-commits
mailing list