summaryrefslogtreecommitdiff
path: root/src/cmd/gc/dcl.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-27 23:55:14 -0700
committerRuss Cox <rsc@golang.org>2009-05-27 23:55:14 -0700
commitf6f70933698bcfaa2f7fbed24dcc75784d80d5bb (patch)
tree7ec702ad1c80def016cbfd23ccaebc0fdbdf134a /src/cmd/gc/dcl.c
parent7d3403fdf5d248c36b407fe33fd5408105d89e2b (diff)
downloadgolang-f6f70933698bcfaa2f7fbed24dcc75784d80d5bb.tar.gz
clean up gmove:
* conversions all in one place. * no separate load, store phases; direct memory addressing when possible (this is the x86 after all!). avoids extra registers, extra MOVQs. * fixes int32 -> uint64 bug (was zero-extending) R=ken OCL=29482 CL=29484
Diffstat (limited to 'src/cmd/gc/dcl.c')
-rw-r--r--src/cmd/gc/dcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c
index e4d1a0455..6068651b8 100644
--- a/src/cmd/gc/dcl.c
+++ b/src/cmd/gc/dcl.c
@@ -1061,7 +1061,7 @@ addconst(Node *n, Node *e, int ctxt)
d = dcl();
d->dsym = s;
d->dnode = e;
- d->op = OCONST;
+ d->op = OLITERAL;
d->back = r->back;
r->back->forw = d;
r->back = d;