Skip to content

Commit a576b2e

Browse files
committed
small optimization
1 parent bc8d2e5 commit a576b2e

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
@@ -445,7 +445,7 @@ def in_frame_push(idx: int) -> bool:
445445
)
446446

447447
if lhs[0].kind == lx.TIMES or any(
448-
t.kind == lx.ARROW or t.kind == lx.LBRACKET for t in lhs[1:]
448+
t.kind in {lx.ARROW, lx.LBRACKET} for t in lhs[1:]
449449
):
450450
# Don't handle: *ptr = ..., ptr->field = ..., or ptr[field] = ...
451451
# Assume that they are visible to the GC.

0 commit comments

Comments
 (0)