summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-11-11 14:57:28 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-11-11 14:57:28 +0000
commit470b5f1a7906e3250ee0605aa202051f1dddac5d (patch)
tree41826adfd895f8e14f52782f104d1568cae008f2 /llvm/lib
parentc47620a838eae330c04453ed3900aab0ac4159cb (diff)
downloadbcm5719-llvm-470b5f1a7906e3250ee0605aa202051f1dddac5d.tar.gz
bcm5719-llvm-470b5f1a7906e3250ee0605aa202051f1dddac5d.zip
Silencing a signed vs unsigned type mismatch warning.
llvm-svn: 252732
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index d74c51b2bbc..4f7328279e2 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud