Skip to content

Commit 6ddb2dd

Browse files
committed
Remove invalid check
1 parent 61d200a commit 6ddb2dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SequenceStorageNodes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,12 +683,11 @@ protected abstract static class GetNativeItemScalarNode extends Node {
683683
@Specialization(guards = "isObject(getElementType, storage)", limit = "1")
684684
protected static Object doNativeObject(NativeSequenceStorage storage, int idx,
685685
@CachedLibrary("storage.getPtr()") InteropLibrary lib,
686-
@Shared("verifyNativeItemNode") @Cached VerifyNativeItemNode verifyNativeItemNode,
687686
@Shared("getElementType") @Cached @SuppressWarnings("unused") GetElementType getElementType,
688687
@Cached CExtNodes.ToJavaNode toJavaNode,
689688
@Cached PRaiseNode raiseNode) {
690689
try {
691-
return verifyResult(verifyNativeItemNode, raiseNode, storage, toJavaNode.execute(lib.readArrayElement(storage.getPtr(), idx)));
690+
return toJavaNode.execute(lib.readArrayElement(storage.getPtr(), idx));
692691
} catch (UnsupportedMessageException | InvalidArrayIndexException e) {
693692
// The 'InvalidArrayIndexException' should really not happen since we did a bounds
694693
// check before.

0 commit comments

Comments
 (0)