mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +00:00
gh-107901: add the HAS_EVAL_BREAK instruction flag (#108375)
This commit is contained in:
parent
5a25daa512
commit
5f41376e93
3 changed files with 28 additions and 21 deletions
|
@ -381,7 +381,8 @@ class Analyzer:
|
|||
# Make sure the targets have the same fmt
|
||||
fmts = list(set([t.instr_fmt for t in targets]))
|
||||
assert len(fmts) == 1
|
||||
assert len(list(set([t.instr_flags.bitmap() for t in targets]))) == 1
|
||||
ignored_flags = {'HAS_EVAL_BREAK_FLAG'}
|
||||
assert len({t.instr_flags.bitmap(ignore=ignored_flags) for t in targets}) == 1
|
||||
return PseudoInstruction(pseudo.name, targets, fmts[0], targets[0].instr_flags)
|
||||
|
||||
def analyze_instruction(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue