From 142c38399ecd743a4f6f25881ea514dde374bc6d Mon Sep 17 00:00:00 2001 From: rihi <19492038+rihi@users.noreply.github.com> Date: Wed, 31 Jul 2024 19:12:04 +0200 Subject: [PATCH] Slight more performant way of updating set --- decompiler/pipeline/commons/expressionpropagationcommons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decompiler/pipeline/commons/expressionpropagationcommons.py b/decompiler/pipeline/commons/expressionpropagationcommons.py index c9e95f4ff..2df7d00a3 100644 --- a/decompiler/pipeline/commons/expressionpropagationcommons.py +++ b/decompiler/pipeline/commons/expressionpropagationcommons.py @@ -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