mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user