summaryrefslogtreecommitdiff
path: root/src/cmd/8g/peep.c
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/8g/peep.c
parent09f84a75bc63a6316d575f531489d69ec8ade2e8 (diff)
downloadgolang-b901efe83e212f0c34c769c079e41373da12d723.tar.gz
Imported Upstream version 1.1.2upstream/1.1.2
Diffstat (limited to 'src/cmd/8g/peep.c')
-rw-r--r--src/cmd/8g/peep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/8g/peep.c b/src/cmd/8g/peep.c
index e5a3149cf..b8a1eaa08 100644
--- a/src/cmd/8g/peep.c
+++ b/src/cmd/8g/peep.c
@@ -145,6 +145,7 @@ peep(void)
case ALEAL:
if(regtyp(&p->to))
if(p->from.sym != S)
+ if(p->from.index == D_NONE || p->from.index == D_CONST)
conprop(r);
break;