Skip to content

Commit 3acd011

Browse files
committed
Fixed reachable neverPartOfCompilation assertion
1 parent 8931770 commit 3acd011

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CoerceToComplexNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ PComplex toComplex(VirtualFrame frame, Object x) {
101101
}
102102
}
103103
if (coerceToDouble == null) {
104+
CompilerDirectives.transferToInterpreterAndInvalidate();
104105
coerceToDouble = insert(CoerceToDoubleNode.create());
105106
}
106107
return factory().createComplex(coerceToDouble.execute(frame, x), 0);

0 commit comments

Comments
 (0)