qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 730bce080ca9402dab010d85eba0d80b84940000
parent 67d3c2834d61026d5556cf9846f707844109cf33
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri, 14 Aug 2015 16:12:25 -0400

avoid depending on uninitialized r

Diffstat:
Mlisc/rega.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisc/rega.c b/lisc/rega.c @@ -352,7 +352,8 @@ rega(Fn *fn) } if (i->to.val >= Tmp0) i->to = reg(r, i->to.val); - } + } else + r = 0; if (rtype(i->arg[0]) == RTmp) { /* <arch> * on Intel, we attempt to