]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix error message for type errors involving conversions.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 12 Jul 2012 21:26:52 +0000 (23:26 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 12 Jul 2012 21:26:52 +0000 (23:26 +0200)
Fixes #3818.

R=golang-dev, rsc, r
CC=golang-dev, remy
https://golang.org/cl/6352106

src/cmd/gc/subr.c

index 1bb83272c9d59c238b6b3cf57f845fa489896936..dfb425efcf0d206aa182110823ced40be9f86eae 100644 (file)
@@ -1384,6 +1384,7 @@ assignconv(Node *n, Type *t, char *context)
        r->type = t;
        r->typecheck = 1;
        r->implicit = 1;
+       r->orig = n;
        return r;
 }