script optimization fixes for "concretizing" vector-of-any's

This commit is contained in:
Vern Paxson 2024-01-10 18:24:01 -08:00 committed by Arne Welzel
parent fc12ac2b06
commit bae87fb606
4 changed files with 78 additions and 29 deletions

View file

@ -902,6 +902,9 @@ public:
if ( coerce_type )
v = v->AsRecordVal()->CoerceTo(coerce_type);
else if ( init_type->Tag() == TYPE_VECTOR )
concretize_if_unspecified(cast_intrusive<VectorVal>(v), init_type->Yield());
return ZVal(v, init_type);
}