Skip to content

Commit 0b05457

Browse files
fix macOS builds
1 parent 15961e8 commit 0b05457

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/optimizer_symbols.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,19 +521,20 @@ _Py_uop_sym_set_func_version(JitOptContext *ctx, JitOptRef ref, uint32_t version
521521
case JIT_SYM_TRUTHINESS_TAG:
522522
sym_set_bottom(ctx, sym);
523523
return true;
524-
case JIT_SYM_RECORDED_VALUE_TAG:
524+
case JIT_SYM_RECORDED_VALUE_TAG: {
525525
PyObject *val = sym->recorded_value.value;
526526
if (Py_TYPE(val) != &PyFunction_Type ||
527527
((PyFunctionObject *)sym->recorded_value.value)->func_version != version) {
528528
sym_set_bottom(ctx, sym);
529529
return false;
530-
}
530+
}
531531
// Promote to known value, as we have guarded/checked on it.
532532
sym->tag = JIT_SYM_KNOWN_VALUE_TAG;
533533
// New ownership. We need to NewRef here, as
534534
// it's originally kept alive by the trace buffer.
535535
sym->value.value = Py_NewRef(val);
536536
return true;
537+
}
537538
case JIT_SYM_RECORDED_TYPE_TAG:
538539
if (sym->recorded_type.type == &PyFunction_Type) {
539540
sym->tag = JIT_SYM_FUNC_VERSION_TAG;

0 commit comments

Comments
 (0)