]> Cypherpunks repositories - gostls13.git/commitdiff
typeswitch - expression evaluated
authorKen Thompson <ken@golang.org>
Thu, 2 Apr 2009 04:28:59 +0000 (21:28 -0700)
committerKen Thompson <ken@golang.org>
Thu, 2 Apr 2009 04:28:59 +0000 (21:28 -0700)
twice instead of once.

R=r
OCL=27015
CL=27015

src/cmd/gc/swt.c

index 59065b6f0632fb536b0b5f1714319d2d33590908..70d1a9e4777853b126be05ebd8211131e30c8e83 100644 (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);