summaryrefslogtreecommitdiff
path: root/src/cmd/6g
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-08-13 13:44:24 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-08-13 13:44:24 +0200
commitb901efe83e212f0c34c769c079e41373da12d723 (patch)
treeae9d79e0fe6e4972cdd46aa196327cde714dd4f8 /src/cmd/6g
parent09f84a75bc63a6316d575f531489d69ec8ade2e8 (diff)
downloadgolang-b901efe83e212f0c34c769c079e41373da12d723.tar.gz
Imported Upstream version 1.1.2upstream/1.1.2
Diffstat (limited to 'src/cmd/6g')
-rw-r--r--src/cmd/6g/peep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/6g/peep.c b/src/cmd/6g/peep.c
index bb24d4144..cd2881ec4 100644
--- a/src/cmd/6g/peep.c
+++ b/src/cmd/6g/peep.c
@@ -152,6 +152,7 @@ peep(void)
case ALEAQ:
if(regtyp(&p->to))
if(p->from.sym != S)
+ if(p->from.index == D_NONE || p->from.index == D_CONST)
conprop(r);
break;