[ruby-cvs:68799] nobu:r61618 (trunk): compile.c: fix stack consistency error

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jan 5 23:23:23 JST 2018


nobu	2018-01-05 23:23:23 +0900 (Fri, 05 Jan 2018)

  New Revision: 61618

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61618

  Log:
    compile.c: fix stack consistency error
    
    * compile.c (iseq_peephole_optimize): fix stack consistency error
      from return in loop, by adding extra `pop` when replacing `jump`
      with `leave`, which is never reached but needed to adjust sp
      calculation.  [ruby-core:84589] [Bug #14273]

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_syntax.rb


More information about the ruby-cvs mailing list