Commit 9c8f11ff authored by Russ Cox's avatar Russ Cox

cmd/5g, cmd/8g: fix build

Botched during CL 83090046.

TBR=khr
CC=golang-codereviews
https://golang.org/cl/83070046
parent daca06f2
...@@ -472,13 +472,13 @@ cgen_ret(Node *n) ...@@ -472,13 +472,13 @@ cgen_ret(Node *n)
{ {
Prog *p; Prog *p;
genlist(n->list); // copy out args if(n != N)
if(hasdefer || curfn->exit) { genlist(n->list); // copy out args
gjmp(retpc); if(hasdefer)
return; ginscall(deferreturn, 0);
} genlist(curfn->exit);
p = gins(ARET, N, N); p = gins(ARET, N, N);
if(n->op == ORETJMP) { if(n != N && n->op == ORETJMP) {
p->to.name = D_EXTERN; p->to.name = D_EXTERN;
p->to.type = D_CONST; p->to.type = D_CONST;
p->to.sym = linksym(n->left->sym); p->to.sym = linksym(n->left->sym);
......
...@@ -462,13 +462,13 @@ cgen_ret(Node *n) ...@@ -462,13 +462,13 @@ cgen_ret(Node *n)
{ {
Prog *p; Prog *p;
genlist(n->list); // copy out args if(n != N)
if(retpc) { genlist(n->list); // copy out args
gjmp(retpc); if(hasdefer)
return; ginscall(deferreturn, 0);
} genlist(curfn->exit);
p = gins(ARET, N, N); p = gins(ARET, N, N);
if(n->op == ORETJMP) { if(n != N && n->op == ORETJMP) {
p->to.type = D_EXTERN; p->to.type = D_EXTERN;
p->to.sym = linksym(n->left->sym); p->to.sym = linksym(n->left->sym);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment