mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 18:28:29 +00:00
Silence warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
813c815282
commit
9dacd128b4
@ -505,10 +505,10 @@ static GenericValue size_t_to_GV (size_t n) {
|
||||
static size_t GV_to_size_t (GenericValue GV) {
|
||||
size_t count;
|
||||
if (sizeof (size_t) == sizeof (uint64_t)) {
|
||||
count = GV.ULongVal;
|
||||
count = (size_t)GV.ULongVal;
|
||||
} else {
|
||||
assert (sizeof (size_t) == sizeof (unsigned int));
|
||||
count = GV.UIntVal;
|
||||
count = (size_t)GV.UIntVal;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user