Adjust some Reducer ref-counting and IntrusivePtr usage

This commit is contained in:
Jon Siwek 2021-01-14 00:24:12 -08:00
parent 7ce4351ed0
commit b4cf393475
4 changed files with 12 additions and 12 deletions

View file

@ -369,7 +369,7 @@ ExprPtr NameExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
return TransformMe(make_intrusive<ConstExpr>(v), c, red_stmt);
}
return c->UpdateName(this)->ThisPtr();
return c->UpdateName({NewRef{}, this});
}
ValPtr NameExpr::FoldVal() const