summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-23 10:55:50 -0400
committerRuss Cox <rsc@golang.org>2010-06-23 10:55:50 -0400
commit3b43d32ad60104619f13cf98f8724dedbfc6ce0a (patch)
tree07bdfb6239e74233cf56001236761e0f13398a1f /src/cmd
parent989fa5b9944feb496a068d0fb0e49c72cc2d6f11 (diff)
downloadgolang-3b43d32ad60104619f13cf98f8724dedbfc6ce0a.tar.gz
gc: fix crash for nested complex division
R=ken2 CC=golang-dev http://codereview.appspot.com/1720043
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/gc/cplx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/cplx.c b/src/cmd/gc/cplx.c
index 95fafe6dd..e25f3cabb 100644
--- a/src/cmd/gc/cplx.c
+++ b/src/cmd/gc/cplx.c
@@ -184,6 +184,7 @@ complexgen(Node *n, Node *res)
case OINDEX:
case OIND:
case ONAME: // PHEAP or PPARAMREF var
+ case OCALLFUNC:
igen(n, &n1, res);
complexmove(&n1, res);
regfree(&n1);
@@ -245,7 +246,6 @@ complexgen(Node *n, Node *res)
case OMUL:
complexmul(nl, nr, res);
break;
- // ODIV call a runtime function
}
}