Align snippets handling of unknown register type with indexing. This
is to ensure that for unknown index types, the snippets behave the
same way as indexing.. If not, snippets, can not be generated
correctly.
{
struct snip_rec_info *h = p->extractCtrl->handle;
ZebraHandle zh = h->zh;
- zebra_map_t zm = zebra_map_get(zh->reg->zebra_maps, p->index_type);
+ zebra_map_t zm = zebra_map_get_or_add(zh->reg->zebra_maps, p->index_type);
if (zm)
{