[PATCH] D95308: [TableGen] Fix instantiating multiclass in foreach
Jyun-Yan You via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 26 01:26:38 PST 2021
jyyou.tw updated this revision to Diff 319240.
jyyou.tw added a comment.
Refine condition
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95308/new/
https://reviews.llvm.org/D95308
Files:
llvm/lib/TableGen/TGParser.cpp
Index: llvm/lib/TableGen/TGParser.cpp
===================================================================
--- llvm/lib/TableGen/TGParser.cpp
+++ llvm/lib/TableGen/TGParser.cpp
@@ -3524,7 +3524,7 @@
Substs.emplace_back(QualifiedNameOfImplicitName(MC), DefmName);
- if (resolve(MC->Entries, Substs, CurMultiClass == nullptr && Loops.empty(),
+ if (resolve(MC->Entries, Substs, !CurMultiClass && Loops.empty(),
&NewEntries, &SubClassLoc))
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95308.319240.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210126/2d7cf57a/attachment.bin>
More information about the llvm-commits
mailing list