Fix bugs identified by VC++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26287 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2006-02-18 03:20:33 +00:00
parent 003a272319
commit bce4805d6f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -69,13 +69,13 @@ Init *BitsRecTy::convertValue(IntInit *II) {
if (Value & ~((1LL << Size)-1))
return 0;
} else {
if ((Value >> Size) != -1 || ((Value & (1 << (Size-1))) == 0))
if ((Value >> Size) != -1 || ((Value & (1LL << (Size-1))) == 0))
return 0;
}
BitsInit *Ret = new BitsInit(Size);
for (unsigned i = 0; i != Size; ++i)
Ret->setBit(i, new BitInit(Value & (1 << i)));
Ret->setBit(i, new BitInit(Value & (1LL << i)));
return Ret;
}