[llvm] r256916 - Fix a warning [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 21:53:09 PST 2016
Author: reames
Date: Tue Jan 5 23:53:09 2016
New Revision: 256916
URL: http://llvm.org/viewvc/llvm-project?rev=256916&view=rev
Log:
Fix a warning [NFC]
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=256916&r1=256915&r2=256916&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Tue Jan 5 23:53:09 2016
@@ -881,7 +881,8 @@ MachineInstr::mergeMemRefsWith(const Mac
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);
}
More information about the llvm-commits
mailing list