fix a bad bug in regalloc boilerplate
That was silly... I believe qbe still managed to work because bitsets are only used inside a basic block where rcopy() is not used.
This commit is contained in:
parent
316b57e37e
commit
834b5cb08b
1 changed files with 4 additions and 1 deletions
5
rega.c
5
rega.c
|
@ -50,8 +50,11 @@ sethint(int t, int r)
|
|||
static void
|
||||
rcopy(RMap *ma, RMap *mb)
|
||||
{
|
||||
memcpy(ma, mb, sizeof *ma);
|
||||
memcpy(ma->t, mb->t, sizeof ma->t);
|
||||
memcpy(ma->r, mb->r, sizeof ma->r);
|
||||
memcpy(ma->w, mb->w, sizeof ma->w);
|
||||
bscopy(ma->b, mb->b);
|
||||
ma->n = mb->n;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Reference in a new issue