summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-05-08 11:49:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-05-08 11:49:49 +0900
commitd979172b3e753ae9c094dff9a877b14c63619246 (patch)
tree61d0988c888f12a32e74b77dc1a57509ff4edbb5 /src
parent4bafd628449114eef58216fb16abae6d32faca3b (diff)
parent2aa59393bafa24421ff6c5b90de59af8a25f927c (diff)
downloadmruby-d979172b3e753ae9c094dff9a877b14c63619246.tar.gz
mruby-d979172b3e753ae9c094dff9a877b14c63619246.zip
Merge pull request #2784 from cremno/fix-splat-without-assignment
fix splat without assignment
Diffstat (limited to 'src')
-rw-r--r--src/codegen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c
index c8f964f56..16e1235de 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -964,6 +964,9 @@ gen_assignment(codegen_scope *s, node *tree, int sp, int val)
genop_peep(s, MKOP_AB(OP_MOVE, cursp(), sp), val);
}
break;
+ /* splat without assignment */
+ case NODE_NIL:
+ break;
default:
#ifdef ENABLE_STDIO