[Lldb-commits] [lldb] r162046 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Sean Callanan scallanan at apple.com
Thu Aug 16 14:34:44 PDT 2012


Author: spyffe
Date: Thu Aug 16 16:34:44 2012
New Revision: 162046

URL: http://llvm.org/viewvc/llvm-project?rev=162046&view=rev
Log:
Fixed a crash when incomplete expression variables
are materialized.

<rdar://problem/12105013>

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

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=162046&r1=162045&r2=162046&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Thu Aug 16 16:34:44 2012
@@ -1501,6 +1501,12 @@
         
         if (m_found_entities.ContainsVariable (member_sp))
         {
+            if (!member_sp->GetValueObject())
+            {
+                err.SetErrorString("Variable being materialized doesn't have a frozen version");
+                return false;
+            }
+            
             RegisterInfo *reg_info = member_sp->GetRegisterInfo ();
             if (reg_info)
             {





More information about the lldb-commits mailing list