From 8daf9a649a0974e1e83928c0f567db29ca534429 Mon Sep 17 00:00:00 2001 From: Rihi <19492038+rihi@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:20:26 +0200 Subject: [PATCH] Slight more performant way of updating set (#434) --- 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