Skip to content

Commit 3dfa0f6

Browse files
committed
Fix specialization error in GetQualNameNode
1 parent 393265c commit 3dfa0f6

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,14 +755,14 @@ static TruffleString getQualName(Node inliningTarget, PythonAbstractNativeObject
755755
assert IsTypeNode.executeUncached(clazz);
756756
long flags = getTypeFlagsNode.execute(clazz);
757757
if ((flags & HEAPTYPE) != 0) {
758-
Object qualname = readObjectNode.read(clazz, PyHeapTypeObject__ht_qualname);
758+
Object qualname = readObjectNode.readFromObj(clazz, PyHeapTypeObject__ht_qualname);
759759
try {
760760
return cast.execute(inliningTarget, qualname);
761761
} catch (CannotCastException e) {
762762
throw CompilerDirectives.shouldNotReachHere("Cannot cast ht_qualname to string");
763763
}
764764
} else {
765-
return readCharPtrNode.read(clazz, PyTypeObject__tp_name);
765+
return readCharPtrNode.readFromObj(clazz, PyTypeObject__tp_name);
766766
}
767767
}
768768
}

0 commit comments

Comments
 (0)