WhenStmt/WhenInfo restructuring in support of ZAM "when" statements

This commit is contained in:
Vern Paxson 2023-06-16 16:10:43 -07:00 committed by Arne Welzel
parent 7d5760ac74
commit 1dd2270272
5 changed files with 200 additions and 90 deletions

View file

@ -2342,7 +2342,7 @@ ExprPtr CallExpr::Duplicate()
auto func_type = func->GetType();
auto in_hook = func_type->AsFuncType()->Flavor() == FUNC_FLAVOR_HOOK;
return SetSucc(new CallExpr(func_d, args_d, in_hook));
return SetSucc(new CallExpr(func_d, args_d, in_hook, in_when));
}
ExprPtr CallExpr::Inline(Inliner* inl)