diff options
Diffstat (limited to 'prism_compile.c')
-rw-r--r-- | prism_compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c index 2bde291c38..785e971670 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -495,7 +495,9 @@ pm_compile_logical(rb_iseq_t *iseq, LINK_ANCHOR *const ret, pm_node_t *cond, return; } if (!label->refcnt) { - PM_PUTNIL; + if (popped) { + PM_PUTNIL; + } } else { ADD_LABEL(seq, label); |