oppc/code: supply transient for attr exprs
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:09:45 +0000 (22:09 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:08 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index ff4ebfc00c367ca674faaeb0a7c6672043a797a9..b15d5fe321826ce5a8b0ff1908774ef60900999d 100644 (file)
@@ -170,7 +170,9 @@ class CodeVisitor(pc_util.Visitor):
         code[-1] = (level, stmt[:-1])
 
         if not assign:
+            transient = self.transient()
             call = self.call(name="oppc_attr", code=[
+                self[transient],
                 code,
             ])
             code = self[call]