From: Dmitry Selyutin Date: Tue, 16 Jan 2024 19:09:45 +0000 (+0300) Subject: oppc/code: fix switch statement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95ea4f76a0ba9bc125a39e22bc9d540c06bfe603;p=openpower-isa.git oppc/code: fix switch statement --- 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):