Skip to content

Commit

Permalink
[Truffle] Array#push with an empty put non-null store is fine for com…
Browse files Browse the repository at this point in the history
…pilation.
  • Loading branch information
chrisseaton committed Apr 21, 2015
1 parent 3ff5b6d commit f831308
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -3352,7 +3352,6 @@ public RubyArray pushNullEmptyObjects(RubyArray array, Object... values) {

@Specialization(guards = {"!isNull", "isEmpty"})
public RubyArray pushEmptySingleIntegerFixnum(RubyArray array, Object... values) {
notDesignedForCompilation();
// TODO CS 20-Apr-15 in reality might be better reusing any current storage, but won't worry about that for now
array.setStore(values, values.length);
return array;
Expand Down

0 comments on commit f831308

Please sign in to comment.