Skip to content

Commit d07415d

Browse files
committed
DECL: replace exception on unrecognized InitInfo by printed msg
1 parent b8040a0 commit d07415d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chc/app/CGlobalDeclarations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,9 @@ def index_init(self, init: CInitInfo, fid: int = -1) -> int:
604604
return self.mk_compound_init_index(init.tags, args)
605605

606606
else:
607-
raise Exception("InitInfo not recognized")
607+
# raise Exception("InitInfo not recognized: " + str(init))
608+
print("InitInfo not recognized: " + str(init))
609+
return -1
608610

609611
def index_offset_init(self, oinit: COffsetInitInfo, fid: int = -1) -> int:
610612
args: List[int] = [

0 commit comments

Comments
 (0)