Fix core dump on v3Number replace'ed assertions.

This commit is contained in:
Wilson Snyder 2019-08-04 14:14:28 -04:00
parent 71265a8ec9
commit 1a36e05cc6
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ private:
dtypeSetLogicUnsized(m_num.width(), (m_num.sized() ? 0 : m_num.widthMin()),
AstNumeric::fromBool(m_num.isSigned()));
}
m_num.nodep(this);
}
public:
AstConst(FileLine* fl, const V3Number& num)

View File

@ -1,4 +1,5 @@
%Error: t/t_math_shift_over_bad.v:18: Value too wide for 32-bits expected in this context 64'h123456789abcdef
: ... In instance t
assign o = i << 64'h01234567_89abcdef;
^~~~~~~~~~~~~~~~~~~~~
%Error: Exiting due to