-O gen-C++ tweaks to be compatible with ZAM changes

This commit is contained in:
Vern Paxson 2023-06-16 16:13:23 -07:00 committed by Arne Welzel
parent d89b39a0bb
commit 65a7e3de5f
3 changed files with 3 additions and 3 deletions

View file

@ -446,7 +446,7 @@ void CPPCompile::GenWhenStmt(const WhenStmt* w)
{
Emit("ValPtr retval = {NewRef{}, curr_t->Lookup(curr_assoc)};");
Emit("if ( ! retval )");
Emit("\tthrow DelayedCallException();");
Emit("\tthrow CPPDelayedCallException();");
Emit("return %s;", GenericValPtrToGT("retval", ret_type, GEN_NATIVE));
}