Fix MSVC signed/unsigned comparison warning. NFCI.

llvm-svn: 324171
This commit is contained in:
Simon Pilgrim 2018-02-03 12:38:56 +00:00
parent 3e1478f866
commit 3d5ee7aa41

View File

@ -114,7 +114,7 @@ Error DWARFDebugRnglists::extract(DWARFDataExtractor Data,
"offset 0x%" PRIx32, "offset 0x%" PRIx32,
*OffsetPtr - 1); *OffsetPtr - 1);
case dwarf::DW_RLE_start_end: { case dwarf::DW_RLE_start_end: {
if (End - *OffsetPtr < HeaderData.AddrSize * 2) if ((End - *OffsetPtr) < unsigned(HeaderData.AddrSize * 2))
return createError("insufficient space remaining in table for " return createError("insufficient space remaining in table for "
"DW_RLE_start_end encoding " "DW_RLE_start_end encoding "
"at offset 0x%" PRIx32, "at offset 0x%" PRIx32,