Fix error on wide numbers that represent shifts, bug1088.

This commit is contained in:
Wilson Snyder
2016-09-14 20:27:20 -04:00
parent 7d8c51181d
commit 2117fe414e
5 changed files with 54 additions and 4 deletions
-3
View File
@@ -2632,9 +2632,6 @@ private:
AstNode* shiftp = nodep->rhsp();
nodep->rhsp()->replaceWith(new AstConst(shiftp->fileline(), num));
shiftp->deleteTree(); VL_DANGLING(shiftp);
} else if (!m_paramsOnly) {
nodep->rhsp()->v3error("Unsupported: Shifting of by over 32-bit number isn't supported."
<<" (This isn't a shift of 32 bits, but a shift of 2^32, or 4 billion!)\n");
}
}
}