updates to ZAM to track recent changes in script semantics

This commit is contained in:
Vern Paxson 2021-12-04 20:24:39 -05:00
parent e7412e257f
commit 3f9f47980a
7 changed files with 38 additions and 2588 deletions

View file

@ -230,7 +230,8 @@ const ZAMStmt ZAMCompiler::CompileAssignToIndex(const NameExpr* lhs, const Index
auto n = const_aggr ? nullptr : aggr->AsNameExpr();
auto con = const_aggr ? aggr->AsConstExpr() : nullptr;
if ( indexes.length() == 1 && indexes[0]->GetType()->Tag() == TYPE_VECTOR )
if ( indexes.length() == 1 && indexes[0]->GetType()->Tag() == TYPE_VECTOR &&
aggr->GetType()->Tag() != TYPE_TABLE )
{
auto index1 = indexes[0];
if ( index1->Tag() == EXPR_CONST )