[Python-checkins] gh-106280: Remove unnecessary unreachable code (gh-106285)
corona10
webhook-mailer at python.org
Fri Jun 30 11:58:10 EDT 2023
https://github.com/python/cpython/commit/02ce3d56e6d230768853757109e7ca6425a6a600
commit: 02ce3d56e6d230768853757109e7ca6425a6a600
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-06-30T15:58:07Z
summary:
gh-106280: Remove unnecessary unreachable code (gh-106285)
files:
M Python/ceval.c
diff --git a/Python/ceval.c b/Python/ceval.c
index 2010e9e6e7a1c..80ae85c24f054 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2845,9 +2845,6 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
{
fprintf(stderr, "Unknown uop %d, operand %" PRIu64 "\n", opcode, operand);
Py_FatalError("Unknown uop");
- abort(); // Unreachable
- for (;;) {}
- // Really unreachable
}
}
More information about the Python-checkins
mailing list