Commit 55b145e3 authored by Dean Prichard's avatar Dean Prichard Committed by Russ Cox

arm: fix build

R=rsc
CC=golang-dev
https://golang.org/cl/800041
parent 97d0e8fe
......@@ -87,10 +87,8 @@ compile(Node *fn)
if(pret)
patch(pret, pc);
ginit();
if(curfn->exit)
genlist(curfn->exit);
gclean();
if(nerrors != 0)
goto ret;
if(hasdefer)
......@@ -427,9 +425,10 @@ void
cgen_ret(Node *n)
{
genlist(n->list); // copy out args
if(hasdefer)
ginscall(deferreturn, 0);
gins(ARET, N, N);
if(hasdefer || curfn->exit)
gjmp(pret);
else
gins(ARET, N, N);
}
/*
......
......@@ -27,7 +27,6 @@ convlit1.go
declbad.go
empty.go
escape.go
escape1.go
fixedbugs/bug000.go
fixedbugs/bug001.go
fixedbugs/bug002.go
......
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