mirror of
https://github.com/golang/go
synced 2024-11-26 05:07: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:
parent
30bc5d7bbd
commit
b72c7e943c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user