diff --git a/src/script_opt/CPP/RuntimeInits.cc b/src/script_opt/CPP/RuntimeInits.cc index fe8f07ce9b..3d31177a68 100644 --- a/src/script_opt/CPP/RuntimeInits.cc +++ b/src/script_opt/CPP/RuntimeInits.cc @@ -170,12 +170,20 @@ void CPP_IndexedInits::Generate(InitsManager* im, std::vector& ivec, auto tag = static_cast(init_vals[0]); auto ae_tag = static_cast(init_vals[1]); + if ( ae_tag == AE_NONE ) + { + ivec[offset] = make_intrusive(tag); + return; + } + ExprPtr e; auto e_arg = init_vals[2]; switch ( ae_tag ) { case AE_NONE: + // Shouldn't happen, per test above. + ASSERT(0); break; case AE_CONST: