minor enhancements for ZAM inlining

This commit is contained in:
Vern Paxson 2022-02-03 08:53:10 -08:00
parent 88c73f4680
commit 94e71b738a
3 changed files with 10 additions and 18 deletions

View file

@ -1858,6 +1858,12 @@ ExprPtr RecordConstructorExpr::Duplicate()
return SetSucc(new RecordConstructorExpr(op_l));
}
ExprPtr RecordConstructorExpr::Inline(Inliner* inl)
{
op = op->Inline(inl)->AsListExprPtr();
return ThisPtr();
}
bool RecordConstructorExpr::HasReducedOps(Reducer* c) const
{
auto& exprs = op->AsListExpr()->Exprs();