summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
index c28a5348b6c..17879c39970 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
@@ -206,9 +206,7 @@ MachVMMemory::GetStolenPages(task_t task)
if(stolen >= mb128)
{
stolen = (stolen & ~((128 * 1024 * 1024ULL) - 1)); // rounding down
- vm_size_t pagesize = vm_page_size;
- pagesize = PageSize (task);
- stolenPages = stolen/pagesize;
+ stolenPages = stolen / PageSize (task);
}
}
}
OpenPOWER on IntegriCloud