diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-23 18:21:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-23 18:21:13 +0000 |
commit | 14112e51697e56788fcb32f4255833499c2738b5 (patch) | |
tree | dfa48dfb8069dfcfc07f4ca70b12063242cd42f5 /lib/Support/Timer.cpp | |
parent | e499f970585c2462e2de8a38f67f6d11683a6bb0 (diff) |
Actually, these need to be signed integers, not unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r-- | lib/Support/Timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index f4e97c4dc7..69f967c738 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -112,7 +112,7 @@ static inline size_t getMemUsage() { } struct TimeRecord { - uint64_t Elapsed, UserTime, SystemTime, MemUsed; + int64_t Elapsed, UserTime, SystemTime, MemUsed; }; static TimeRecord getTimeRecord(bool Start) { @@ -122,7 +122,7 @@ static TimeRecord getTimeRecord(bool Start) { sys::TimeValue user(0,0); sys::TimeValue sys(0,0); - uint64_t MemUsed = 0; + int64_t MemUsed = 0; if (Start) { MemUsed = getMemUsage(); sys::Process::GetTimeUsage(now,user,sys); |