Skip to content

Commit

Permalink
Slight more performant way of updating set (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi authored Aug 15, 2024
1 parent ad2f8a3 commit 8daf9a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def _get_dangerous_relations_between_definition_and_target(self, alias_variable:
for basic_block in self._cfg:
for instruction in basic_block:
if isinstance(instruction, Relation) and instruction.destination.name == alias_variable.name:
relations |= {instruction}
relations.add(instruction)

return relations

Expand Down

0 comments on commit 8daf9a6

Please sign in to comment.