mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make sure we don't push MOVED or NONE on the stack
This commit is contained in:
parent
79eb5e1aca
commit
7dbbba38a0
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ INSN_ENTRY(<%= insn.name %>)
|
|||
INC_SP(INSN_ATTR(sp_inc));
|
||||
% insn.rets.reverse_each.with_index do |ret, i|
|
||||
TOPN(<%= i %>) = <%= insn.cast_to_VALUE ret %>;
|
||||
VM_ASSERT(!RB_TYPE_P(TOPN(<%= i %>), T_NONE));
|
||||
VM_ASSERT(!RB_TYPE_P(TOPN(<%= i %>), T_MOVED));
|
||||
% end
|
||||
% end
|
||||
if (leaf) ADD_PC(INSN_ATTR(width));
|
||||
|
|
Loading…
Reference in a new issue