Internals: Create user1SetOnce(). No functional change.

This commit is contained in:
Wilson Snyder
2012-04-29 08:55:33 -04:00
parent 91e4010039
commit a4ddc5b3ac
13 changed files with 34 additions and 29 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ private:
}
void visitShift (AstNodeBiop* nodep) {
// Shifts of > 32/64 bits in C++ will wrap-around and generate non-0s
if (!nodep->user2Inc()) {
if (!nodep->user2SetOnce()) {
UINFO(4," ShiftFix "<<nodep<<endl);
if (nodep->widthMin()<=64 // Else we'll use large operators which work right
// C operator's width must be < maximum shift which is based on Verilog width