Fixed a bug where the variable-resolution code
would occasionally try to resolve the placeholder
variable used for static data allocation.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@144677 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index fa4b017..c6d7f2d 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -1499,6 +1499,9 @@
     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();