summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-02-18 03:20:33 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-02-18 03:20:33 +0000
commitbce4805d6fec26b8261367a460cda177b71bf551 (patch)
treeb0af08120df4508deae69a5b3582055204314774 /utils/TableGen/Record.cpp
parent003a272319d8871492edf9cecc25d9275b872f99 (diff)
downloadllvm-bce4805d6fec26b8261367a460cda177b71bf551.tar.gz
llvm-bce4805d6fec26b8261367a460cda177b71bf551.tar.bz2
llvm-bce4805d6fec26b8261367a460cda177b71bf551.tar.xz
Fix bugs identified by VC++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r--utils/TableGen/Record.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp
index 51014813b2..2798afba6c 100644
--- a/utils/TableGen/Record.cpp
+++ b/utils/TableGen/Record.cpp
@@ -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;
}