summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-26 17:19:52 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-26 17:19:52 +0900
commit5bf327497fad0b30475649190626b8646b613bb4 (patch)
treea9304bba6655b49236bd121c73dcfb6dbaa5765c
parent773097d3a880c90be38b10cd0d686b415b824670 (diff)
downloadmruby-5bf327497fad0b30475649190626b8646b613bb4.tar.gz
mruby-5bf327497fad0b30475649190626b8646b613bb4.zip
bit more peephole optimization for NODE_LVAR
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 2733e8a13..43490b184 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -1844,7 +1844,7 @@ codegen(codegen_scope *s, node *tree, int val)
int idx = lv_idx(s, sym(tree));
if (idx > 0) {
- genop(s, MKOP_AB(OP_MOVE, cursp(), idx));
+ genop_peep(s, MKOP_AB(OP_MOVE, cursp(), idx), NOVAL);
}
else {
int lv = 0;