From: Philip Reames Date: Wed, 6 Jan 2016 05:53:09 +0000 (+0000) Subject: Fix a warning [NFC] X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d1a0b9f13e60483ba64036f599cf2064704e6773;p=oota-llvm.git Fix a warning [NFC] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256916 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5188b84440c..6b8eeccd173 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -881,7 +881,8 @@ MachineInstr::mergeMemRefsWith(const MachineInstr& Other) { MemBegin); MemEnd = std::copy(Other.memoperands_begin(), Other.memoperands_end(), MemEnd); - assert(MemEnd - MemBegin == CombinedNumMemRefs && "missing memrefs"); + assert(MemEnd - MemBegin == (ptrdiff_t)CombinedNumMemRefs && + "missing memrefs"); return std::make_pair(MemBegin, CombinedNumMemRefs); }