mirror of
https://github.com/golang/go
synced 2024-11-21 20:14:52 -07:00
8g: fix out of register bug in byte(x) code
R=ken2 CC=golang-dev https://golang.org/cl/223070
This commit is contained in:
parent
e6443f6255
commit
bc6878331a
@ -215,14 +215,9 @@ cgen(Node *n, Node *res)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
mgen(nl, &n1, res);
|
mgen(nl, &n1, res);
|
||||||
if(n->type->width > widthptr)
|
tempname(&n2, n->type);
|
||||||
tempname(&n2, n->type);
|
|
||||||
else
|
|
||||||
regalloc(&n2, n->type, res);
|
|
||||||
gmove(&n1, &n2);
|
gmove(&n1, &n2);
|
||||||
gmove(&n2, res);
|
gmove(&n2, res);
|
||||||
if(n2.op == OREGISTER)
|
|
||||||
regfree(&n2);
|
|
||||||
mfree(&n1);
|
mfree(&n1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user