diff options
Diffstat (limited to 'lldb/source/DataFormatters/NSIndexPath.cpp')
-rw-r--r-- | lldb/source/DataFormatters/NSIndexPath.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/NSIndexPath.cpp b/lldb/source/DataFormatters/NSIndexPath.cpp index 6932211f29d..363069fd9a9 100644 --- a/lldb/source/DataFormatters/NSIndexPath.cpp +++ b/lldb/source/DataFormatters/NSIndexPath.cpp @@ -49,7 +49,10 @@ public: { m_impl.m_mode = Mode::Invalid; - m_ast_ctx = ClangASTContext::GetASTContext(m_backend.GetClangType().GetASTContext()); + TypeSystem* type_system = m_backend.GetClangType().GetTypeSystem(); + if (!type_system) + return false; + m_ast_ctx = type_system->AsClangASTContext(); if (!m_ast_ctx) return false; |