oppc/code: insert footer line break
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 8e307adfb022ebb96c0ed88a056075293d761a7d..13b6fc65997a596938209e645fbb73594467c746 100644 (file)
@@ -77,6 +77,7 @@ class CodeVisitor(pc_util.Visitor):
         if decls:
             self.__code[self.__header].emit()
         self.__code[self.__footer].emit(stmt=f"}}")
+        self.__code[self.__footer].emit()
 
     def __iter__(self):
         yield from self.__code[self.__header]