From 0fe20178ae4a80f558cfe86f3c085cdbaeac0201 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 3 Feb 2016 04:07:05 +0900 Subject: [PATCH] emit OP_PUSHUNDEF --- extlib/benz/codegen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extlib/benz/codegen.c b/extlib/benz/codegen.c index 3bc11e0b..256b5f42 100644 --- a/extlib/benz/codegen.c +++ b/extlib/benz/codegen.c @@ -961,6 +961,10 @@ codegen_quote(pic_state *pic, codegen_context *cxt, pic_value obj, bool tailpos) obj = pic_list_ref(pic, obj, 1); switch (pic_type(obj)) { + case PIC_TT_UNDEF: + emit_n(pic, cxt, OP_PUSHUNDEF); + emit_ret(pic, cxt, tailpos); + break; case PIC_TT_BOOL: emit_n(pic, cxt, (pic_true_p(obj) ? OP_PUSHTRUE : OP_PUSHFALSE)); emit_ret(pic, cxt, tailpos);