Fix array bound checks on real variables.

This commit is contained in:
Wilson Snyder 2014-02-09 09:19:05 -05:00
parent 053e016388
commit 97633f7bed
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
*** Support case inside, bug708. [Jan Egil Ruud]
**** Fix array bound checks on real variables.
* Verilator 3.855 2014-01-18

View File

@ -126,7 +126,7 @@ private:
else {
string name = ((string)"__Vlvbound"+cvtToStr(m_modp->varNumGetInc()));
AstVar* varp = new AstVar(fl, AstVarType::MODULETEMP, name,
VFlagLogicPacked(), prep->width());
prep->dtypep());
m_modp->addStmtp(varp);
AstNode* abovep = prep->backp(); // Grab above point before lose it w/ next replace