Fix cast-to-size context-determined sizing, bug828.

This commit is contained in:
Wilson Snyder
2014-10-17 19:01:04 -04:00
parent b73edc0564
commit bfbca34eb0
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ private:
: nodep->findBitDType(width, width, underDtp->numeric()));
nodep->dtypep(newDtp);
// We ignore warnings as that is sort of the point of a cast
iterateCheck(nodep,"Cast LHS",nodep->lhsp(),SELF,FINAL,newDtp,EXTEND_EXP,false);
iterateCheck(nodep,"Cast LHS",nodep->lhsp(),CONTEXT,FINAL,newDtp,EXTEND_EXP,false);
}
if (vup->c()->final()) {
// CastSize not needed once sizes determined