6c: fix botched "embedded struct conversion codegen"-fix

Commit ee93b99842
typoed the node name ("nod1" vs "nod") when bringing
back the nod offset for struct offset in ODOT.
This commit is contained in:
cinap_lenrek 2024-04-01 20:23:46 +00:00
parent 1b51d5683a
commit 578af37678

View file

@ -1024,8 +1024,8 @@ cgen(Node *n, Node *nn)
diag(n, "DOT and no offset");
break;
}
nod1.xoffset += (long)r->vconst;
nod1.type = n->type;
nod.xoffset += (long)r->vconst;
nod.type = n->type;
cgen(&nod, nn);
break;