Fix for GitHub issue #142 - assertion failure when parameter expression

contains undefined variable.

(cherry picked from commit 8f6f999ea7)
This commit is contained in:
Martin Whitaker 2017-01-29 10:47:54 +00:00
parent b8c8f03037
commit b04d5a9068
1 changed files with 0 additions and 1 deletions

View File

@ -5677,7 +5677,6 @@ unsigned PETernary::test_width(Design*des, NetScope*scope, width_mode_t&mode)
} else if (tru_type == IVL_VT_LOGIC || fal_type == IVL_VT_LOGIC) { } else if (tru_type == IVL_VT_LOGIC || fal_type == IVL_VT_LOGIC) {
expr_type_ = IVL_VT_LOGIC; expr_type_ = IVL_VT_LOGIC;
} else { } else {
ivl_assert(*this, tru_type == fal_type);
expr_type_ = tru_type; expr_type_ = tru_type;
} }
if (expr_type_ == IVL_VT_REAL) { if (expr_type_ == IVL_VT_REAL) {