oppc/code: fix switch statement
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 b15d5fe321826ce5a8b0ff1908774ef60900999d..c640bdba21ab9583fb14f9c286ec41f91907da47 100644 (file)
@@ -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):