Skip to content

Commit

Permalink
dont parse statements twice (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
salls committed May 29, 2024
1 parent db61f65 commit 351d3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvex/stmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _from_c(c_stmt):
return None

try:
stmt_class = enum_to_stmt_class(c_stmt.tag)._from_c(c_stmt)
stmt_class = enum_to_stmt_class(c_stmt.tag)
except KeyError:
raise PyVEXError("Unknown/unsupported IRStmtTag %s.\n" % get_enum_from_int(c_stmt.tag))
return stmt_class._from_c(c_stmt)
Expand Down

0 comments on commit 351d3db

Please sign in to comment.