1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:20:03 -07:00

fix handling of *f() = 1

R=ken
OCL=17625
CL=17641
This commit is contained in:
Russ Cox 2008-10-22 13:13:01 -07:00
parent 0061e56196
commit 40fa690d75

View File

@ -937,6 +937,8 @@ loop:
case OIND:
if(top == Etop)
goto nottop;
if(top == Elv) // even if n is lvalue, n->left is rvalue
top = Erv;
walktype(n->left, top);
if(n->left == N)
goto ret;