From fe5d139b51c4d2715b4c5858daf74d81d7725fd8 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 15 Nov 2011 19:13:54 +0000 Subject: Fixed a bug where the variable-resolution code would occasionally try to resolve the placeholder variable used for static data allocation. llvm-svn: 144677 --- lldb/source/Expression/IRForTarget.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Expression/IRForTarget.cpp') diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index fa4b0174694..c6d7f2dea2e 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -1499,6 +1499,9 @@ IRForTarget::MaterializeInternalVariable (GlobalVariable *global_variable) if (GlobalVariable::isExternalLinkage(global_variable->getLinkage())) return false; + if (global_variable == m_reloc_placeholder) + return true; + uint64_t offset = m_data_allocator->GetStream().GetSize(); llvm::Type *variable_type = global_variable->getType(); -- cgit v1.2.3