Skip to content

Commit 6ea0387

Browse files
committed
Ensure we don't return DispatchNode#MISSING in SplatCastNode
1 parent cade325 commit 6ea0387

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/truffleruby/core/cast/SplatCastNode.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.oracle.truffle.api.dsl.NodeChild;
2626
import com.oracle.truffle.api.dsl.Specialization;
2727

28-
import static org.truffleruby.language.dispatch.DispatchConfiguration.PRIVATE_RETURN_MISSING;
2928

3029
/** Splat as used to cast a value to an array if it isn't already, as in {@code *value}. Must be a RubyNode because it's
3130
* used in the translator. */
@@ -121,7 +120,7 @@ private Object callToA(Object nil) {
121120
CompilerDirectives.transferToInterpreterAndInvalidate();
122121
toA = insert(DispatchNode.create());
123122
}
124-
return toA.call(PRIVATE_RETURN_MISSING, nil, "to_a");
123+
return toA.call(nil, "to_a");
125124
}
126125

127126
private RubyArray executeDup(RubyArray array) {

0 commit comments

Comments
 (0)