1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:27:59 -07:00

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
This commit is contained in:
Russ Cox 2012-04-10 12:51:36 -04:00
parent 30bc5d7bbd
commit b72c7e943c

View File

@ -1672,7 +1672,7 @@ copy:
regsalloc(&nod2, nn); regsalloc(&nod2, nn);
nn->type = t; nn->type = t;
gins(AMOVL, &nod1, &nod2); gins(AMOVQ, &nod1, &nod2);
regfree(&nod1); regfree(&nod1);
nod2.type = typ(TIND, t); nod2.type = typ(TIND, t);