compiler

Unnamed Compiled Systems Language Project
git clone http://frotz.net/git/compiler.git
Log | Files | Refs

commit 41eaf6d45720f9e48642cbe6e148519e6398f364
parent 9f953f1ad6f4b72ac2065369591a57342b0ec1f9
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri,  6 Mar 2020 22:42:15 -0800

bugfix: don't leak registers in gen_store()

Diffstat:
Msrc/tlc.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/tlc.c b/src/tlc.c @@ -1271,6 +1271,7 @@ void gen_store(Ctx ctx, Item val, Item var) { gen_load(ctx, val); if (var->kind == iParam) { emit_mem(ctx, STW, val->r, SP, 4 + var->a * 4); + put_reg(ctx, val->r); } else { error(ctx, "gen_store: invalid target"); }