Browse files

Don't use cast_array for { |*| } and { |*a| }.

  • Loading branch information...
1 parent f365dc5 commit e1b0c761de7a8a43242c10a4b09863df66bcb690 Brian Ford committed Aug 15, 2011
Showing with 0 additions and 3 deletions.
  1. +0 −1 lib/compiler/ast/sends.rb
  2. +0 −2 spec/custom/helpers/generator.rb
View
1 lib/compiler/ast/sends.rb
@@ -680,7 +680,6 @@ def bytecode(g)
g.pop
when :splat
g.cast_for_splat_block_arg
- g.cast_array
arguments_bytecode(g)
g.pop
when :empty
View
2 spec/custom/helpers/generator.rb
@@ -282,8 +282,6 @@ def in_block_send(name, type, required=nil, call_count=0, vis=true)
when :splat
required = -1
d.cast_for_splat_block_arg
- d.cast_array
- d.cast_array
d.set_local 0
when :rest
count = required.abs - 1

0 comments on commit e1b0c76

Please sign in to comment.