From bbe7506fb9d3a36bf3bd6cbd119e537b38f8d313 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 25 Sep 2014 16:06:12 -0700 Subject: [PATCH] fix bad call of getReg --- tools/js-optimizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 5e5066d52..f0751c8f6 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -5854,7 +5854,7 @@ function emterpretify(ast) { if (name in locals) { // local var type = getAsmType(name, asmData); - var reg = getReg(value, type); + var reg = getReg(value, undefined, type); // TODO: detect when the last operation in reg[1] assigns in its arg x, in which case we can avoid the SET and make it assign to us reg[1] = reg[1].concat(makeSet(locals[name], releaseIfFree(reg[0]), type)); return [locals[name], reg[1]];