From 578af37678b2ea16e29d950cbc352823cd2491ab Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 1 Apr 2024 20:23:46 +0000 Subject: [PATCH] 6c: fix botched "embedded struct conversion codegen"-fix Commit ee93b99842546dc501a383e06fd0ba4af904e150 typoed the node name ("nod1" vs "nod") when bringing back the nod offset for struct offset in ODOT. --- sys/src/cmd/6c/cgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/6c/cgen.c b/sys/src/cmd/6c/cgen.c index 9e08ab2a1..f71897189 100644 --- a/sys/src/cmd/6c/cgen.c +++ b/sys/src/cmd/6c/cgen.c @@ -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;