[llvm] r252732 - Silencing a signed vs unsigned type mismatch warning.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 06:57:28 PST 2015
Author: aaronballman
Date: Wed Nov 11 08:57:28 2015
New Revision: 252732
URL: http://llvm.org/viewvc/llvm-project?rev=252732&view=rev
Log:
Silencing a signed vs unsigned type mismatch warning.
Modified:
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=252732&r1=252731&r2=252732&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Wed Nov 11 08:57:28 2015
@@ -297,7 +297,7 @@ ValueProfData::getValueProfData(const un
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;
}
More information about the llvm-commits
mailing list