From: Russ Cox Date: Tue, 10 Apr 2012 16:51:36 +0000 (-0400) Subject: cmd/6c: fix probable code gen bug X-Git-Tag: go1.1rc2~3408 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b72c7e943cfbb7296bb182717642072c0e8efd5c;p=gostls13.git cmd/6c: fix probable code gen bug This is a pointer being copied; MOVL can't possibly be right. R=ken2 CC=golang-dev https://golang.org/cl/5999043 --- diff --git a/src/cmd/6c/cgen.c b/src/cmd/6c/cgen.c index 71822586c4..1fe0156c64 100644 --- a/src/cmd/6c/cgen.c +++ b/src/cmd/6c/cgen.c @@ -1672,7 +1672,7 @@ copy: regsalloc(&nod2, nn); nn->type = t; - gins(AMOVL, &nod1, &nod2); + gins(AMOVQ, &nod1, &nod2); regfree(&nod1); nod2.type = typ(TIND, t);