Silencing two signed/unsigned mismatch warnings; NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2015-05-28 12:55:59 +00:00
parent 331b719b2b
commit b97d261a17

View File

@ -73,7 +73,8 @@ struct PatchLocation {
void set(uint64_t New) const {
assert(Die);
assert(Index < std::distance(Die->begin_values(), Die->end_values()));
assert((signed)Index <
std::distance(Die->begin_values(), Die->end_values()));
const auto &Old = Die->begin_values()[Index];
assert(Old.getType() == DIEValue::isInteger);
Die->setValue(Index,
@ -82,7 +83,8 @@ struct PatchLocation {
uint64_t get() const {
assert(Die);
assert(Index < std::distance(Die->begin_values(), Die->end_values()));
assert((signed)Index <
std::distance(Die->begin_values(), Die->end_values()));
assert(Die->begin_values()[Index].getType() == DIEValue::isInteger);
return Die->begin_values()[Index].getDIEInteger().getValue();
}