summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 08:55:09 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 08:55:09 +0000
commita93136879e5bdfa4ac59669f9e25a0b9cf6c44f5 (patch)
treee32140a926939e037d8fc0dacdcc36c2d60de5a3
parent8742de6f10aaf1f06347b3291b307e425bf07d7b (diff)
* compile.c (iseq_compile): set local_table for
ISEQ_TYPE_DEFINED_GUARD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--compile.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2303185419..99297c88df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun May 25 17:54:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_compile): set local_table for
+ ISEQ_TYPE_DEFINED_GUARD.
+
Sun May 25 17:52:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
* compile.c (iseq_build_body): remove side effect from
diff --git a/compile.c b/compile.c
index cc068b112e..a91b48ce2f 100644
--- a/compile.c
+++ b/compile.c
@@ -268,6 +268,7 @@ iseq_compile(VALUE self, NODE *node)
COMPILE_POPED(ret, "ensure", node);
break;
case ISEQ_TYPE_DEFINED_GUARD:
+ iseq_set_local_table(iseq, 0);
COMPILE(ret, "defined guard", node);
break;
default: