mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user