From 562e1e10a8852a169f62036917e2458c83c38b8c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 30 Jun 2009 17:33:54 -0600 Subject: [PATCH] fix regression in MyCompiler::startLogicalIp --- src/compiler.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index a88a94828c..e987177b1f 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -5062,16 +5062,16 @@ class MyCompiler: public Compiler { if (c.subroutine) { c.logicalCode[logicalIp]->subroutine = c.subroutine; c.subroutine = 0; + + for (unsigned li = 0; li < c.localFootprint; ++li) { + Local* local = c.locals + li; + if (local->value == 0) { + initLocal(1, li); + } + } } c.logicalIp = logicalIp; - - for (unsigned li = 0; li < c.localFootprint; ++li) { - Local* local = c.locals + li; - if (local->value == 0) { - initLocal(1, li); - } - } } virtual Promise* machineIp(unsigned logicalIp) {