diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index 4b273b02ff91..38a8b449f34e 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -95,7 +95,7 @@ Timer::~Timer() { static inline long getMemUsage() { if (TrackSpace) - return sys::Process::GetMallocUsage(); + return (long)sys::Process::GetMallocUsage(); return 0; }