aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example.c
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-13 11:33:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:06 -0700
commitb54b3264cc47cc8d8cae91787e8c3c85d3eb7abe (patch)
treeeda37624762bffa657284a29d3628b3321f83084 /example.c
parent8644b59fc616e569b7b25c886af9250a9b0a8b75 (diff)
downloadsparse-dev-b54b3264cc47cc8d8cae91787e8c3c85d3eb7abe.tar.gz
Duh. We marked the wrong register REG_FIXED when we wrote out
the outgoing pseudos. This caused us to then possibly double-allocate that register later for another pseudo..
Diffstat (limited to 'example.c')
-rw-r--r--example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.c b/example.c
index 3796837a..114535e0 100644
--- a/example.c
+++ b/example.c
@@ -1256,7 +1256,7 @@ static void write_reg_to_storage(struct bb_state *state, struct hardreg *reg, ps
output_insn(state, "movl %s,%s", reg->name, out->name);
storage->type = REG_REG;
storage->regno = i;
- reg->busy = REG_FIXED;
+ out->busy = REG_FIXED;
return;
}