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:
52525c0
)
Silencing a signed vs unsigned type mismatch warning.
author
Aaron Ballman
<aaron@aaronballman.com>
Wed, 11 Nov 2015 14:57:28 +0000
(14:57 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Wed, 11 Nov 2015 14:57:28 +0000
(14:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252732
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ProfileData/InstrProf.cpp
patch
|
blob
|
history
diff --git
a/lib/ProfileData/InstrProf.cpp
b/lib/ProfileData/InstrProf.cpp
index
d74c51b
..
4f73282
100644
(file)
--- a/
lib/ProfileData/InstrProf.cpp
+++ b/
lib/ProfileData/InstrProf.cpp
@@
-297,7
+297,7
@@
ValueProfData::getValueProfData(const unsigned char *D,
if (VR->Kind > IPVK_Last)
return instrprof_error::malformed;
VR = VR->getNext();
- if ((char *)VR - (char *)VPD.get() > TotalSize)
+ if ((char *)VR - (char *)VPD.get() >
(ptrdiff_t)
TotalSize)
return instrprof_error::malformed;
}