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)
{
Prog *p;
if(n != N)
genlist(n->list); // copy out args
if(hasdefer || curfn->exit) {
gjmp(retpc);
return;
}
if(hasdefer)
ginscall(deferreturn, 0);
genlist(curfn->exit);
p = gins(ARET, N, N);
if(n->op == ORETJMP) {
if(n != N && n->op == ORETJMP) {
p->to.name = D_EXTERN;
p->to.type = D_CONST;
p->to.sym = linksym(n->left->sym);
......
......@@ -462,13 +462,13 @@ cgen_ret(Node *n)
{
Prog *p;
if(n != N)
genlist(n->list); // copy out args
if(retpc) {
gjmp(retpc);
return;
}
if(hasdefer)
ginscall(deferreturn, 0);
genlist(curfn->exit);
p = gins(ARET, N, N);
if(n->op == ORETJMP) {
if(n != N && n->op == ORETJMP) {
p->to.type = D_EXTERN;
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