summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index ef0be1e8849..37d13a98a52 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -401,6 +401,16 @@ ClangExpressionDeclMap::DoMaterialize (bool dematerialize,
return LLDB_INVALID_ADDRESS;
}
+ if (!m_struct_size)
+ {
+ if (log)
+ log->PutCString("Not bothering to allocate a struct because no arguments are needed");
+
+ m_allocated_area = NULL;
+
+ return true;
+ }
+
const SymbolContext &sym_ctx(exe_ctx->frame->GetSymbolContext(lldb::eSymbolContextEverything));
if (!dematerialize)
OpenPOWER on IntegriCloud