Fix loss of data types in V3Premit. From strings branch.

This commit is contained in:
Wilson Snyder 2014-11-28 10:43:05 -05:00
parent 546c91a940
commit 25efee2e62
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ private:
//UINFO(9, " Detail stmtp="<<(m_stmtp?"Y":"N")<<" U="<<(nodep->user1()?"Y":"N")<<" IW "<<(nodep->isWide()?"Y":"N")<<endl);
if (m_stmtp
&& !nodep->user1()) { // Not already done
if (nodep->isWide()) { // Else might be cell interconnect or something
if (nodep->isWide()) {
if (m_assignLhs) {
} else if (nodep->firstAbovep()
&& nodep->firstAbovep()->castNodeAssign()
@ -157,7 +157,7 @@ private:
AstVar* getBlockTemp(AstNode* nodep) {
string newvarname = ((string)"__Vtemp"+cvtToStr(m_modp->varNumGetInc()));
AstVar* varp = new AstVar (nodep->fileline(), AstVarType::STMTTEMP, newvarname,
VFlagLogicPacked(), nodep->widthMin());
nodep->dtypep());
m_funcp->addInitsp(varp);
return varp;
}