Skip to content

Commit 03a8580

Browse files
committed
Add 'CompilerAsserts.neverPartOfCompilation' to 'toString'
1 parent 62090ca commit 03a8580

File tree

1 file changed

+2
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method/PBuiltinMethod.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import com.oracle.graal.python.builtins.objects.object.PythonBuiltinObject;
2929
import com.oracle.graal.python.builtins.objects.type.LazyPythonClass;
30+
import com.oracle.truffle.api.CompilerAsserts;
3031

3132
// Corresponds to PyCFunction, but that name is just confusing
3233
public class PBuiltinMethod extends PythonBuiltinObject {
@@ -50,6 +51,7 @@ public Object getSelf() {
5051

5152
@Override
5253
public String toString() {
54+
CompilerAsserts.neverPartOfCompilation();
5355
return "<builtin-method '" + function + "' of '" + self + "' objects>";
5456
}
5557
}

0 commit comments

Comments
 (0)