forked from OSchip/llvm-project
Skip the NAME field when forming tuples.
llvm-svn: 148147
This commit is contained in:
parent
ba5be17e7d
commit
071c69cd7c
|
@ -215,6 +215,9 @@ struct TupleExpander : SetTheory::Expander {
|
|||
for (unsigned i = 0, e = Proto->getValues().size(); i != e; ++i) {
|
||||
RecordVal RV = Proto->getValues()[i];
|
||||
|
||||
if (RV.getName() == "NAME")
|
||||
continue;
|
||||
|
||||
// Replace the sub-register list with Tuple.
|
||||
if (RV.getName() == "SubRegs")
|
||||
RV.setValue(ListInit::get(Tuple, RegisterRecTy));
|
||||
|
|
Loading…
Reference in New Issue