aboutsummaryrefslogtreecommitdiff
path: root/source/DataFormatters/NSIndexPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/DataFormatters/NSIndexPath.cpp')
-rw-r--r--source/DataFormatters/NSIndexPath.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/DataFormatters/NSIndexPath.cpp b/source/DataFormatters/NSIndexPath.cpp
index 363bd5c05..4d6f2c504 100644
--- a/source/DataFormatters/NSIndexPath.cpp
+++ b/source/DataFormatters/NSIndexPath.cpp
@@ -49,7 +49,10 @@ public:
{
m_impl.Clear();
- 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;