From 2cc4eb1dbb06c64e8c492961baa8987d082ec5d6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 16 Jan 2024 22:09:45 +0300 Subject: [PATCH] oppc/code: supply transient to unary exprs --- src/openpower/oppc/pc_code.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index ff8d6006..49b045e6 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -283,7 +283,9 @@ class CodeVisitor(pc_util.Visitor): yield node if isinstance(node.value, pc_ast.IfExpr): self.fixup_ternary(node=node.value) + transient = self.transient() call = self.call(name=str(self[node.op]), code=[ + self[transient], self[node.value], ]) with self.pseudocode(node=node): -- 2.30.2