summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2010-06-28 12:19:12 -0700
committerKen Thompson <ken@golang.org>2010-06-28 12:19:12 -0700
commit1c6d83228ecfb7a8633b021cdb6f2a0f2a3da292 (patch)
treee0ca00c07629157879b98f122ece022124168007
parent9248ea6e5eb5383aad191b08eaaaf28e47716d2b (diff)
downloadgolang-1c6d83228ecfb7a8633b021cdb6f2a0f2a3da292.tar.gz
8g compiler missing call to splitclean().
fixes issue 887. R=rsc CC=golang-dev http://codereview.appspot.com/1675050
-rw-r--r--src/cmd/8g/cgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/8g/cgen.c b/src/cmd/8g/cgen.c
index cd70f5e17..8fbdc6ee7 100644
--- a/src/cmd/8g/cgen.c
+++ b/src/cmd/8g/cgen.c
@@ -453,10 +453,13 @@ cgenindex(Node *n, Node *res)
cgen(n, &tmp);
split64(&tmp, &lo, &hi);
gmove(&lo, res);
- if(debug['B'])
+ if(debug['B']) {
+ splitclean();
return nil;
+ }
nodconst(&zero, types[TINT32], 0);
gins(ACMPL, &hi, &zero);
+ splitclean();
return gbranch(AJNE, T);
}