summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-31 05:53:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-31 05:53:27 +0000
commit0f371a16372ef52e2b336ce74b028e54d0a29657 (patch)
tree3a4416cf22df790d5fd90351fc03d78e84b126ad /llvm/lib
parent0fcca1262bf8468e369365244c5d543f4c75632c (diff)
downloadbcm5719-llvm-0f371a16372ef52e2b336ce74b028e54d0a29657.tar.gz
bcm5719-llvm-0f371a16372ef52e2b336ce74b028e54d0a29657.zip
Fix a compilation error for the case where mallinfo() is not available.
llvm-svn: 19201
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Process.cpp b/llvm/lib/System/Unix/Process.cpp
index 19533905175..c1448de8d40 100644
--- a/llvm/lib/System/Unix/Process.cpp
+++ b/llvm/lib/System/Unix/Process.cpp
@@ -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
OpenPOWER on IntegriCloud