Skip to content

Commit 5f8faec

Browse files
eregontimfel
authored andcommitted
Add assertion that we are on the correct side of the class' split personality
1 parent 3e25387 commit 5f8faec

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,7 @@ static boolean doOther(Object left, Object right,
15351535
if (leftIsStatic) {
15361536
left = lib.readMember(left, "class");
15371537
} else {
1538+
assert rightIsStatic;
15381539
right = lib.readMember(right, "class");
15391540
}
15401541
} catch (UnsupportedMessageException | UnknownIdentifierException e) {

0 commit comments

Comments
 (0)