summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Expression/RecordingMemoryManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/RecordingMemoryManager.cpp b/lldb/source/Expression/RecordingMemoryManager.cpp
index 9ff86f61df1..b7b875f5216 100644
--- a/lldb/source/Expression/RecordingMemoryManager.cpp
+++ b/lldb/source/Expression/RecordingMemoryManager.cpp
@@ -238,10 +238,10 @@ RecordingMemoryManager::CommitAllocations (Process &process)
lldb_private::Error err;
- size_t allocation_size = ai->m_size + ai->m_alignment - 1;
+ size_t allocation_size = (ai->m_size ? ai->m_size : 1) + ai->m_alignment - 1;
if (allocation_size == 0)
- allocation_size = 1;
+ allocation_size = 1;œ
ai->m_remote_allocation = process.AllocateMemory(
allocation_size,
OpenPOWER on IntegriCloud