[Lldb-commits] [lldb] r143393 - /lldb/trunk/source/Core/ValueObjectVariable.cpp
Jim Ingham
jingham at apple.com
Mon Oct 31 16:06:46 PDT 2011
Author: jingham
Date: Mon Oct 31 18:06:45 2011
New Revision: 143393
URL: http://llvm.org/viewvc/llvm-project?rev=143393&view=rev
Log:
ValueObjectVariable::GetClangAST should check that it has a valid Type before accessing it.
Modified:
lldb/trunk/source/Core/ValueObjectVariable.cpp
Modified: lldb/trunk/source/Core/ValueObjectVariable.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectVariable.cpp?rev=143393&r1=143392&r2=143393&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectVariable.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectVariable.cpp Mon Oct 31 18:06:45 2011
@@ -83,7 +83,10 @@
clang::ASTContext *
ValueObjectVariable::GetClangAST ()
{
- return m_variable_sp->GetType()->GetClangAST();
+ Type *var_type = m_variable_sp->GetType();
+ if (var_type)
+ return var_type->GetClangAST();
+ return 0;
}
size_t
More information about the lldb-commits
mailing list