mirror of
https://github.com/golang/go
synced 2024-11-23 19:50:06 -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:
parent
daca06f2e3
commit
9c8f11ff96
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user