Skip to content

Commit f831308

Browse files
committed
[Truffle] Array#push with an empty put non-null store is fine for compilation.
1 parent 3ff5b6d commit f831308

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

truffle/src/main/java/org/jruby/truffle/nodes/core/ArrayNodes.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3352,7 +3352,6 @@ public RubyArray pushNullEmptyObjects(RubyArray array, Object... values) {
33523352

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

0 commit comments

Comments
 (0)