[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h
Reid Spencer
reid at x10sys.com
Wed May 24 12:21:31 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.27 -> 1.28
---
Log message:
For PR786: http://llvm.cs.uiuc.edu/PR786 :
Minor tweaks in public headers and a few .cpp files so that LLVM can build
successfully with -pedantic and projects using LLVM with -pedantic don't
get warnings from LLVM. There's still more -pedantic warnings to fix.
---
Diffs of the changes: (+2 -2)
ValueTypes.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.27 llvm/include/llvm/CodeGen/ValueTypes.h:1.28
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.27 Mon Mar 27 19:59:17 2006
+++ llvm/include/llvm/CodeGen/ValueTypes.h Wed May 24 14:21:13 2006
@@ -203,13 +203,13 @@
/// bits in the specified integer value type.
static inline uint64_t getIntVTBitMask(ValueType VT) {
assert(isInteger(VT) && !isVector(VT) && "Only applies to int scalars!");
- return ~0ULL >> (64-getSizeInBits(VT));
+ return ~uint64_t(0UL) >> (64-getSizeInBits(VT));
}
/// MVT::getIntVTSignBit - Return an integer with a 1 in the position of the
/// sign bit for the specified integer value type.
static inline uint64_t getIntVTSignBit(ValueType VT) {
assert(isInteger(VT) && !isVector(VT) && "Only applies to int scalars!");
- return 1ULL << (getSizeInBits(VT)-1);
+ return uint64_t(1UL) << (getSizeInBits(VT)-1);
}
/// MVT::getValueTypeString - This function returns value type as a string,
More information about the llvm-commits
mailing list