From: Aaron Ballman Date: Wed, 11 Nov 2015 14:57:28 +0000 (+0000) Subject: Silencing a signed vs unsigned type mismatch warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=88d51ce445ecad5825506e9e88ea0717d68e55d8;p=oota-llvm.git Silencing a signed vs unsigned type mismatch warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252732 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index d74c51b2bbc..4f7328279e2 100644 --- 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; }