8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ffa15 commit e47688aCopy full SHA for e47688a
Python/compile.c
@@ -8496,8 +8496,13 @@ no_redundant_jumps(cfg_builder *g) {
8496
}
8497
return true;
8498
8499
+
8500
+#define ASSERT_NO_REDUNDANT_JUMPS(G) assert(no_redundant_jumps(G))
8501
+#else
8502
+#define ASSERT_NO_REDUNDANT_JUMPS(G)
8503
#endif
8504
8505
8506
static int
8507
remove_redundant_jumps(cfg_builder *g) {
8508
/* If a non-empty block ends with a jump instruction, check if the next
@@ -8644,7 +8649,7 @@ assemble(struct compiler *c, int addNone)
8644
8649
goto error;
8645
8650
8646
8651
8647
- assert(no_redundant_jumps(g));
8652
+ ASSERT_NO_REDUNDANT_JUMPS(g);
8648
8653
8654
/* Can't modify the bytecode after computing jump offsets. */
8655
assemble_jump_offsets(g->g_entryblock);
0 commit comments