Skip to content

Commit 8f311fd

Browse files
committed
No longer use NeverValidAssumption.INSTANCE
1 parent 072fa95 commit 8f311fd

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/buffer/BufferAcquireGenerateUncachedNode.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -51,7 +51,6 @@
5151
import com.oracle.truffle.api.Truffle;
5252
import com.oracle.truffle.api.frame.VirtualFrame;
5353
import com.oracle.truffle.api.nodes.NodeCost;
54-
import com.oracle.truffle.api.utilities.NeverValidAssumption;
5554

5655
/**
5756
* Helper node for using {@link PythonBufferAcquireLibrary} and {@link PythonBufferAccessLibrary} in
@@ -205,12 +204,12 @@ public PythonBufferAccessLibrary getAccessLib() {
205204

206205
@Override
207206
public Assumption needNotPassFrameAssumption() {
208-
return NeverValidAssumption.INSTANCE;
207+
return Assumption.NEVER_VALID;
209208
}
210209

211210
@Override
212211
public Assumption needNotPassExceptionAssumption() {
213-
return NeverValidAssumption.INSTANCE;
212+
return Assumption.NEVER_VALID;
214213
}
215214

216215
@Override

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/GenericInvokeNode.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -58,7 +58,6 @@
5858
import com.oracle.truffle.api.frame.VirtualFrame;
5959
import com.oracle.truffle.api.nodes.IndirectCallNode;
6060
import com.oracle.truffle.api.profiles.ConditionProfile;
61-
import com.oracle.truffle.api.utilities.NeverValidAssumption;
6261

6362
@GenerateUncached
6463
public abstract class GenericInvokeNode extends InvokeNode {
@@ -76,12 +75,12 @@ protected GenericInvokeNode() {
7675

7776
@Override
7877
public Assumption needNotPassExceptionAssumption() {
79-
return NeverValidAssumption.INSTANCE;
78+
return Assumption.NEVER_VALID;
8079
}
8180

8281
@Override
8382
public Assumption needNotPassFrameAssumption() {
84-
return NeverValidAssumption.INSTANCE;
83+
return Assumption.NEVER_VALID;
8584
}
8685

8786
/**

0 commit comments

Comments
 (0)