diff options
| author | Quentin Carbonneaux <[email protected]> | 2019-02-05 14:53:58 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2019-02-05 14:53:58 +0100 |
| commit | 834b5cb08bbf0f4fbc1992a72327dfc2c0a31796 (patch) | |
| tree | 7371cf743137debb27ae60308b8ee717ab152004 /rega.c | |
| parent | 316b57e37eb10cc127526886f58f6cad24916bf1 (diff) | |
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.
Diffstat (limited to 'rega.c')
| -rw-r--r-- | rega.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
