Skip to content

Commit 34c3f2b

Browse files
remove ability to return error
1 parent 267ecf7 commit 34c3f2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/optimizer_analysis.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ optimize_uops(
484484
_Py_uop_abstractcontext_init(ctx);
485485
_Py_UOpsAbstractFrame *frame = _Py_uop_frame_new(ctx, co, curr_stacklen, NULL, 0);
486486
if (frame == NULL) {
487-
return -1;
487+
return 0;
488488
}
489489
ctx->curr_frame_depth++;
490490
ctx->frame = frame;
@@ -562,7 +562,7 @@ optimize_uops(
562562
if (PyErr_Occurred()) {
563563
PyErr_Clear();
564564
}
565-
return -1;
565+
return 0;
566566

567567
}
568568

@@ -709,7 +709,7 @@ _Py_uop_analyze_and_optimize(
709709
_PyFrame_GetCode(frame), buffer,
710710
length, curr_stacklen, dependencies);
711711

712-
if (length <= 0) {
712+
if (length == 0) {
713713
return length;
714714
}
715715

0 commit comments

Comments
 (0)