Fix DPI display bogus error

This commit is contained in:
Wilson Snyder 2010-03-20 07:13:52 -04:00
parent 7ea8b54210
commit 41b167d23c
1 changed files with 3 additions and 2 deletions

View File

@ -990,8 +990,9 @@ private:
lastloop = true; // so exit early; next loop will correct it lastloop = true; // so exit early; next loop will correct it
} }
else if (portp->basicp() && portp->basicp()->keyword()==AstBasicDTypeKwd::STRING else if (portp->basicp() && portp->basicp()->keyword()==AstBasicDTypeKwd::STRING
&& !pinp->castCvtPackString() && !pinp->castCvtPackString()
&& !(pinp->castVarRef() && pinp->castVarRef()->varp()->basicp()->keyword()==AstBasicDTypeKwd::STRING)) { && !pinp->castSFormatF() // Already generates a string
&& !(pinp->castVarRef() && pinp->castVarRef()->varp()->basicp()->keyword()==AstBasicDTypeKwd::STRING)) {
UINFO(4," Add CvtPackString: "<<pinp<<endl); UINFO(4," Add CvtPackString: "<<pinp<<endl);
AstNRelinker handle; AstNRelinker handle;
pinp->unlinkFrBack(&handle); // No next, that's the next pin pinp->unlinkFrBack(&handle); // No next, that's the next pin