Fix for GitHub issue #142 - assertion failure when parameter expression
contains undefined variable.
(cherry picked from commit 8f6f999ea7)
This commit is contained in:
parent
b8c8f03037
commit
b04d5a9068
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue