Skip to content

Commit e77f842

Browse files
fix debug build
1 parent a158835 commit e77f842

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ dummy_func(void) {
750750
}
751751

752752

753-
assert(self_or_null != NULL);
753+
assert(!PyJitRef_IsNull(self_or_null));
754754
assert(args != NULL);
755755
if (ref_is_not_null(self_or_null)) {
756756
// Bound method fiddling, same as _INIT_CALL_PY_EXACT_ARGS in VM

Python/optimizer_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer_symbols.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ _Py_uop_abstractcontext_init(JitOptContext *ctx)
745745
ctx->n_consumed = ctx->locals_and_stack;
746746
#ifdef Py_DEBUG // Aids debugging a little. There should never be NULL in the abstract interpreter.
747747
for (int i = 0 ; i < MAX_ABSTRACT_INTERP_SIZE; i++) {
748-
ctx->locals_and_stack[i] = NULL;
748+
ctx->locals_and_stack[i] = PyJitRef_NULL;
749749
}
750750
#endif
751751

0 commit comments

Comments
 (0)