From a2e1f1f4a7e7d23f979bbacbdd659c4b3dcb6a4e Mon Sep 17 00:00:00 2001 From: Rafael Ravedutti Lucio Machado <rafael.r.ravedutti@fau.de> Date: Wed, 6 Jan 2021 17:28:54 +0100 Subject: [PATCH] Remove FIXME and adjust is_mutable for iterators Signed-off-by: Rafael Ravedutti Lucio Machado <rafael.r.ravedutti@fau.de> --- ast/loops.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ast/loops.py b/ast/loops.py index 96ccca0..d99c155 100644 --- a/ast/loops.py +++ b/ast/loops.py @@ -24,10 +24,7 @@ class Iter(): return Type_Int def is_mutable(self): - # FIXME: This should be set to False, but currently the flattening transformation is reusing - # expressions that are not alive anymore (used first within if, then outside it), causing - # the generated code to be uncompilable - return True + return False def scope(self): return self.loop.block -- GitLab