1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:00:05 -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: case OIND:
if(top == Etop) if(top == Etop)
goto nottop; goto nottop;
if(top == Elv) // even if n is lvalue, n->left is rvalue
top = Erv;
walktype(n->left, top); walktype(n->left, top);
if(n->left == N) if(n->left == N)
goto ret; goto ret;