From 95ea4f76a0ba9bc125a39e22bc9d540c06bfe603 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 16 Jan 2024 22:09:45 +0300 Subject: [PATCH] oppc/code: fix switch statement --- src/openpower/oppc/pc_code.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index b15d5fe3..c640bdba 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -588,6 +588,7 @@ class CodeVisitor(pc_util.Visitor): with self[node]: for (level, stmt) in self[node.cases]: self[node].emit(stmt=stmt, level=level) + self[node].emit(stmt="}") @pc_util.Hook(pc_ast.Cases) def Cases(self, node): -- 2.30.2