forked from OSchip/llvm-project
Switched size_t to int64_t to prevent type mismatch in call to max.
llvm-svn: 73988
This commit is contained in:
parent
4983e4550e
commit
c547bad3ff
|
@ -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);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue