Skip to content

Commit 59ced23

Browse files
committed
Fix crash with -O3
Upon certain circumstances -O3 crashes if bb is None
1 parent 63e3562 commit 59ced23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/zx48k/optimizer/basicblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def update_goes_and_comes(self):
330330
bb = stack.pop(0)
331331
while True:
332332
if bb is None:
333-
DummyBasicBlock(ALL_REGS, ALL_REGS)
333+
bb = DummyBasicBlock(ALL_REGS, ALL_REGS)
334334

335335
if bb in bbset:
336336
break

0 commit comments

Comments
 (0)