From 20f05b2521c58058f89b04000b365895eda05b24 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 12 Jan 2024 23:13:34 +0300 Subject: [PATCH] oppc/pseudocode: simplify call arguments --- src/openpower/oppc/pc_pseudocode.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/openpower/oppc/pc_pseudocode.py b/src/openpower/oppc/pc_pseudocode.py index a04a9924..b9d1b964 100644 --- a/src/openpower/oppc/pc_pseudocode.py +++ b/src/openpower/oppc/pc_pseudocode.py @@ -34,10 +34,9 @@ class PseudocodeVisitor(pc_util.Visitor): def Call(self, node): yield node args = [] - for subnode in node.args: - for (level, stmt) in self[subnode]: - assert level == 0 - args.append(stmt) + for (level, stmt) in self[node.args]: + assert level == 0 + args.append(stmt) args = ", ".join(args) stmt = f"{node.name}({args})" self[node].emit(stmt=stmt) -- 2.30.2