forked from OSchip/llvm-project
Fix a compilation error for the case where mallinfo() is not available.
llvm-svn: 19201
This commit is contained in:
parent
0fcca1262b
commit
0f371a1637
|
@ -57,7 +57,7 @@ Process::GetMallocUsage()
|
|||
#elif defined(HAVE_SBRK)
|
||||
// Note this is only an approximation and more closely resembles
|
||||
// the value returned by mallinfo in the arena field.
|
||||
char * eom = sbrk(0);
|
||||
char * eom = (char*) sbrk(0);
|
||||
if (eom != ((char*)-1) && som != ((char*)-1))
|
||||
return eom - som;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue