From 88d51ce445ecad5825506e9e88ea0717d68e55d8 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 11 Nov 2015 14:57:28 +0000 Subject: [PATCH] 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 --- lib/ProfileData/InstrProf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1