projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a6baa
)
Fix a warning [NFC]
author
Philip Reames
<listmail@philipreames.com>
Wed, 6 Jan 2016 05:53:09 +0000
(
05:53
+0000)
committer
Philip Reames
<listmail@philipreames.com>
Wed, 6 Jan 2016 05:53:09 +0000
(
05:53
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256916
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index 5188b84440c5c1f3a89448906620735aa279477f..6b8eeccd173d48ed7ef2759c4fecc12787b47791 100644
(file)
--- 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);
}