From 25a3580831170f8a0acd0a79aca2c94ea4652338 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 22 Jun 2021 18:39:42 +0200 Subject: nodes.py: add an assertion on Get_Kind This function is the most likely to be called on a Null_Iir node. --- scripts/pnodespy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/pnodespy.py b/scripts/pnodespy.py index 8146c947e..b4209bc90 100755 --- a/scripts/pnodespy.py +++ b/scripts/pnodespy.py @@ -66,7 +66,7 @@ def do_iirs_subprg(): @export @BindToLibGHDL("{classname}__get_kind") def Get_Kind(node: Iir) -> IirKind: - \"\"\"\"\"\" + assert node != 0 @export @BindToLibGHDL("{classname}__get_location") -- cgit v1.2.3