Silence warnings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-08 20:13:44 +00:00
parent 813c815282
commit 9dacd128b4

View File

@ -505,10 +505,10 @@ static GenericValue size_t_to_GV (size_t n) {
static size_t GV_to_size_t (GenericValue GV) { static size_t GV_to_size_t (GenericValue GV) {
size_t count; size_t count;
if (sizeof (size_t) == sizeof (uint64_t)) { if (sizeof (size_t) == sizeof (uint64_t)) {
count = GV.ULongVal; count = (size_t)GV.ULongVal;
} else { } else {
assert (sizeof (size_t) == sizeof (unsigned int)); assert (sizeof (size_t) == sizeof (unsigned int));
count = GV.UIntVal; count = (size_t)GV.UIntVal;
} }
return count; return count;
} }