1
0
mirror of https://github.com/golang/go synced 2024-11-26 03:47:57 -07:00

typeswitch - expression evaluated

twice instead of once.

R=r
OCL=27015
CL=27015
This commit is contained in:
Ken Thompson 2009-04-01 21:28:59 -07:00
parent 62d11a3302
commit 2450c590e9

View File

@ -788,7 +788,7 @@ typeswitch(Node *sw)
a = syslook("ifacethash", 1);
argtype(a, sw->ntest->right->type);
a = nod(OCALL, a, sw->ntest->right);
a = nod(OCALL, a, facename);
a = nod(OAS, hashname, a);
cas = list(cas, a);