fixes for script optimization of coerce-to-any expressions

This commit is contained in:
Vern Paxson 2024-08-05 09:21:13 +01:00 committed by Tim Wojtulewicz
parent f693f22192
commit 10d5ca5948
4 changed files with 23 additions and 2 deletions

View file

@ -1642,6 +1642,9 @@ class CoerceToAnyExpr : public UnaryExpr {
public:
CoerceToAnyExpr(ExprPtr op);
bool IsReduced(Reducer* c) const override;
ExprPtr Reduce(Reducer* c, StmtPtr& red_stmt) override;
protected:
ValPtr Fold(Val* v) const override;