gh-148825: Fix build error if specialization is disabled (GH-148826)
(cherry picked from commit
56ae0b8e4f78c612f7b3095cd1c936e54ee0db5f)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
--- /dev/null
+Fix build error if specialization is disabled.
}
#else
for (Py_ssize_t i = 0; i < size-1; i++) {
- if (instructions[i].op.code == GET_ITER) {
+ int opcode = instructions[i].op.code;
+ if (opcode == GET_ITER) {
fixup_getiter(&instructions[i], flags);
}
i += _PyOpcode_Caches[opcode];