Skip to content

Commit 9cab900

Browse files
committed
mark more returns as unique
1 parent a49018e commit 9cab900

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Python/optimizer_bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ dummy_func(void) {
305305
}
306306
else if (lhs_float) {
307307
// Case C:
308-
res = sym_new_type(ctx, &PyFloat_Type);
308+
res = PyJitRef_MakeUnique(sym_new_type(ctx, &PyFloat_Type));
309309
}
310310
else if (!sym_is_const(ctx, rhs)) {
311311
// Case A or B... can't know without the sign of the RHS:
312312
res = sym_new_unknown(ctx);
313313
}
314314
else if (_PyLong_IsNegative((PyLongObject *)sym_get_const(ctx, rhs))) {
315315
// Case B:
316-
res = sym_new_type(ctx, &PyFloat_Type);
316+
res = PyJitRef_MakeUnique(sym_new_type(ctx, &PyFloat_Type));
317317
}
318318
else {
319319
// Case A:
@@ -324,7 +324,7 @@ dummy_func(void) {
324324
res = sym_new_type(ctx, &PyLong_Type);
325325
}
326326
else {
327-
res = sym_new_type(ctx, &PyFloat_Type);
327+
res = PyJitRef_MakeUnique(sym_new_type(ctx, &PyFloat_Type));
328328
}
329329
}
330330

Python/optimizer_cases.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)