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