1
0
mirror of https://github.com/golang/go synced 2024-11-23 20:00:04 -07:00

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

Botched during CL 83090046.

TBR=khr
CC=golang-codereviews
https://golang.org/cl/83070046
This commit is contained in:
Russ Cox 2014-04-01 20:24:53 -04:00
parent daca06f2e3
commit 9c8f11ff96
2 changed files with 12 additions and 12 deletions

View File

@ -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);

View File

@ -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);
}