summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-01-06 05:53:09 +0000
committerPhilip Reames <listmail@philipreames.com>2016-01-06 05:53:09 +0000
commit2d2fc4adf19528e9e8d6cad0761c130991879543 (patch)
tree5f48647656f8c274a173db2cb3209e8b6a338ca0 /llvm/lib/CodeGen/MachineInstr.cpp
parentf2be8df54ba80781bef7b0c94b82cc8b254f573d (diff)
downloadbcm5719-llvm-2d2fc4adf19528e9e8d6cad0761c130991879543.tar.gz
bcm5719-llvm-2d2fc4adf19528e9e8d6cad0761c130991879543.zip
Fix a warning [NFC]
llvm-svn: 256916
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 5188b84440c..6b8eeccd173 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud