diff options
author | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2023-03-17 22:10:42 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2023-03-17 22:10:42 +0000 |
commit | cfebef4330c5197ea1f91747c570aa2788eaae53 (patch) | |
tree | 8ea676a899c6aa07439b1724ebed728aa3c75bdb /sys/src/cmd/cc/dcl.c | |
parent | 613fd6b4294ad3277a91c9a2e58b2b2d4f22ab1c (diff) |
cc: fndecls: use current fn node directly
Diffstat (limited to 'sys/src/cmd/cc/dcl.c')
-rw-r--r-- | sys/src/cmd/cc/dcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/cc/dcl.c b/sys/src/cmd/cc/dcl.c index 46a7430cd..0baa5b554 100644 --- a/sys/src/cmd/cc/dcl.c +++ b/sys/src/cmd/cc/dcl.c @@ -732,7 +732,7 @@ loop: } void -fndecls(Node *f, int pass) +fndecls(int pass) { static Sym *funcsym; Node *n; @@ -746,7 +746,7 @@ fndecls(Node *f, int pass) funcsym = dodecl(adecl, CLOCAL, n->type, n)->sym; }else if(funcsym->aused){ n = new(OSTRING, Z, Z); - n->cstring = f->left->sym->name; + n->cstring = thisfnnode->sym->name; n->type = copytyp(funcsym->type); n->type->width = strlen(n->cstring)+1; n->etype = TARRAY; |