Skip to content

Commit 4c2914b

Browse files
committed
Clean up flags.py
1 parent a08909d commit 4c2914b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tools/cases_generator/flags.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
def makes_escaping_api_call(instr: parsing.InstDef) -> bool:
5555
if "CALL_INTRINSIC" in instr.name:
56-
return True;
56+
return True
5757
tkns = iter(instr.tokens)
5858
for tkn in tkns:
5959
if tkn.kind != lx.IDENTIFIER:
@@ -79,6 +79,7 @@ def makes_escaping_api_call(instr: parsing.InstDef) -> bool:
7979
return True
8080
return False
8181

82+
8283
@dataclasses.dataclass
8384
class InstructionFlags:
8485
"""Construct and manipulate instruction flags"""
@@ -124,9 +125,7 @@ def fromInstruction(instr: parsing.InstDef) -> "InstructionFlags":
124125
or variable_used(instr, "exception_unwind")
125126
or variable_used(instr, "resume_with_error")
126127
),
127-
HAS_ESCAPES_FLAG=(
128-
makes_escaping_api_call(instr)
129-
),
128+
HAS_ESCAPES_FLAG=makes_escaping_api_call(instr),
130129
)
131130

132131
@staticmethod

0 commit comments

Comments
 (0)