[llvm-commits] Compile error in lib/Support/Timer.cpp introduced by r73978

Eric Rannaud eric.rannaud at gmail.com
Tue Jun 23 11:42:11 PDT 2009


r73978 changes the type of Timer::PeakMemBase and Timer::PeakMem to
signed int64_t

in lib/Support/Timer.cpp:

	(*I)->PeakMem = std::max((*I)->PeakMem, MemUsed-(*I)->PeakMemBase);

gives:

Timer.cpp: In static member function ‘static void
llvm::Timer::addPeakMemoryMeasurement()’:                                               
Timer.cpp:189: error: no matching function for call to ‘max(int64_t&,
long unsigned int)’

as MemUsed is a size_t.


Thanks,
Eric.



More information about the llvm-commits mailing list