diff options
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/_Utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py index 2142490e3..e75c5f36a 100644 --- a/pyGHDL/dom/_Utils.py +++ b/pyGHDL/dom/_Utils.py @@ -53,6 +53,8 @@ __MODE_TRANSLATION = { @export def GetIirKindOfNode(node: Iir) -> nodes.Iir_Kind: + # This function is the most likely to be called on a Null_Iir node + assert node != 0 kind: int = nodes.Get_Kind(node) return nodes.Iir_Kind(kind) |