Skip to content

Commit 6071503

Browse files
committed
avoid emitting dead code
1 parent 6d1e184 commit 6071503

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Python/generated_cases.c.h

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

Tools/cases_generator/generate_cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def always_exits(lines: list[str]) -> bool:
981981
return False
982982
line = line[12:]
983983
return line.startswith(
984-
("goto ", "return ", "DISPATCH", "GO_TO_", "Py_UNREACHABLE()")
984+
("goto ", "return ", "DISPATCH", "GO_TO_", "Py_UNREACHABLE()", "ERROR_IF(true, ")
985985
)
986986

987987

0 commit comments

Comments
 (0)