[ruby-cvs:71837] nobu:r64745 (trunk): Use opt_{aref, aset} over opt_{aref, aset}_with

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 15 11:20:47 JST 2018


nobu	2018-09-15 11:20:47 +0900 (Sat, 15 Sep 2018)

  New Revision: 64745

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

  Log:
    Use opt_{aref,aset} over opt_{aref,aset}_with
    
    * compile.c (iseq_compile_each0): Use `opt_aref`/`opt_aset` over
      `opt_aref_with`/`opt_aset_with` when frozen_string_literal: true,
      not to resurrect the index string on non-Hash receiver.
    
    [Fix GH-1957]
    
    From: chopraanmol1 <chopraanmol1 at gmail.com>

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list