[ruby-cvs:72450] nobu:r65350 (trunk): compile.c: fix peephole optimization

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Oct 24 19:38:39 JST 2018


nobu	2018-10-24 19:38:39 +0900 (Wed, 24 Oct 2018)

  New Revision: 65350

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

  Log:
    compile.c: fix peephole optimization
    
    * compile.c (iseq_peephole_optimize): should `pop` before jump
      instruction which succeeds to `newarray` of a literal object,
      not after.  [ruby-core:89536] [Bug #15245]

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


More information about the ruby-cvs mailing list