Switched size_t to int64_t to prevent type mismatch in call to max.

llvm-svn: 73988
This commit is contained in:
Lang Hames 2009-06-23 19:49:23 +00:00
parent 4983e4550e
commit c547bad3ff
1 changed files with 2 additions and 2 deletions

View File

@ -182,11 +182,11 @@ void Timer::sum(const Timer &T) {
/// currently active timers, which will be printed when the timer group prints
///
void Timer::addPeakMemoryMeasurement() {
size_t MemUsed = getMemUsage();
int64_t MemUsed = getMemUsage();
for (std::vector<Timer*>::iterator I = ActiveTimers->begin(),
E = ActiveTimers->end(); I != E; ++I)
(*I)->PeakMem = std::max((*I)->PeakMem, MemUsed-(*I)->PeakMemBase);
(*I)->PeakMem = std::max((*I)->PeakMem, (int64_t)MemUsed-(*I)->PeakMemBase);
}
//===----------------------------------------------------------------------===//