diff options
Diffstat (limited to 'pyGHDL/dom/Sequential.py')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index a4eae8767..fe7c83614 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -210,11 +210,7 @@ class Case(VHDLModel_Case, DOMMixin): ) -> "Case": from pyGHDL.dom._Translate import GetSequentialStatementsFromChainedNodes - block = nodes.Get_Associated_Block(caseNode) - if block is nodes.Null_Iir: - return cls(caseNode, choices) - - statementChain = nodes.Get_Sequential_Statement_Chain(caseNode) + statementChain = nodes.Get_Associated_Chain(caseNode) statements = GetSequentialStatementsFromChainedNodes( statementChain, "case", label ) |