[llvm] r238419 - Silencing two signed/unsigned mismatch warnings; NFC.
Aaron Ballman
aaron at aaronballman.com
Thu May 28 05:55:59 PDT 2015
Author: aaronballman
Date: Thu May 28 07:55:59 2015
New Revision: 238419
URL: http://llvm.org/viewvc/llvm-project?rev=238419&view=rev
Log:
Silencing two signed/unsigned mismatch warnings; NFC.
Modified:
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=238419&r1=238418&r2=238419&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Thu May 28 07:55:59 2015
@@ -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();
}
More information about the llvm-commits
mailing list