From dbdd45acc5b3cd575630b5d888d6bc059ae24baa Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 13 Jul 2015 20:52:55 +0300 Subject: [PATCH] Add missing return. --- artiq/compiler/ir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index d37de2ea0..9b37d9628 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -325,7 +325,7 @@ class Function(Value): self.basic_block.remove(basic_block) def predecessors_of(self, successor): - set(block for block in self.basic_blocks if successor in block.successors()) + return set(block for block in self.basic_blocks if successor in block.successors()) def as_operand(self): return "{} @{}".format(types.TypePrinter().name(self.type),