[Lldb-commits] [lldb] r144677 - /lldb/trunk/source/Expression/IRForTarget.cpp

Sean Callanan scallanan at apple.com
Tue Nov 15 11:13:54 PST 2011


Author: spyffe
Date: Tue Nov 15 13:13:54 2011
New Revision: 144677

URL: http://llvm.org/viewvc/llvm-project?rev=144677&view=rev
Log:
Fixed a bug where the variable-resolution code
would occasionally try to resolve the placeholder
variable used for static data allocation.

Modified:
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=144677&r1=144676&r2=144677&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Tue Nov 15 13:13:54 2011
@@ -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();





More information about the lldb-commits mailing list