Skip to content

Commit 0a1bad2

Browse files
fix mypy
1 parent 3ed1402 commit 0a1bad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ def compute_properties(op: parser.CodeDef) -> Properties:
982982
no_save_ip=no_save_ip,
983983
tier=tier_variable(op),
984984
needs_prev=variable_used(op, "prev_instr"),
985-
needs_guard_ip=(unpredictable_jump and "replaced" not in op.annotations) or variable_used(op, "LLTRACE_RESUME_FRAME") or variable_used(op, "DISPATCH_INLINED"),
985+
needs_guard_ip=(isinstance(op, parser.InstDef) and (unpredictable_jump and "replaced" not in op.annotations)) or variable_used(op, "LLTRACE_RESUME_FRAME") or variable_used(op, "DISPATCH_INLINED"),
986986
unpredictable_jump=unpredictable_jump,
987987
)
988988

0 commit comments

Comments
 (0)