diff options
author | Guido van Rossum <guido@python.org> | 2023-11-18 04:58:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 04:58:13 (GMT) |
commit | eb3c94ea669561a0dfacaca715d4b2723bb2c6f4 (patch) | |
tree | 241fe49c2c0ae402ed709674e63c16ad0ec24f8e /Tools | |
parent | 43b1c33204d125e256f7a0c3086ba547b71a105e (diff) | |
download | cpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.zip cpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.tar.gz cpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.tar.bz2 |
gh-110319: Assert type_version != 0 before using it (#112226)
- Ensure that `assert(type_version != 0);` always comes *before* using `type_version`
Also:
- In cases_generator, rename `-v` to from `--verbose` to `--viable`
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/cases_generator/generate_cases.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/cases_generator/generate_cases.py b/Tools/cases_generator/generate_cases.py index ba45e3a..149558e 100644 --- a/Tools/cases_generator/generate_cases.py +++ b/Tools/cases_generator/generate_cases.py @@ -94,7 +94,7 @@ arg_parser = argparse.ArgumentParser( arg_parser.add_argument( "-v", - "--verbose", + "--viable", help="Print list of non-viable uops and exit", action="store_true", ) @@ -871,7 +871,7 @@ def main() -> None: a.analyze() # Prints messages and sets a.errors on failure if a.errors: sys.exit(f"Found {a.errors} errors") - if args.verbose: + if args.viable: # Load execution counts from bmraw.json, if it exists a.report_non_viable_uops("bmraw.json") return |