diff options
Diffstat (limited to 'lldb/source/DataFormatters/CoreMedia.cpp')
-rw-r--r-- | lldb/source/DataFormatters/CoreMedia.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/DataFormatters/CoreMedia.cpp b/lldb/source/DataFormatters/CoreMedia.cpp index c2fe8e82128..21dd11f0ca3 100644 --- a/lldb/source/DataFormatters/CoreMedia.cpp +++ b/lldb/source/DataFormatters/CoreMedia.cpp @@ -11,7 +11,7 @@ #include "lldb/Core/Flags.h" #include "lldb/Symbol/ClangASTContext.h" - +#include "lldb/Target/Target.h" #include <inttypes.h> using namespace lldb; @@ -21,9 +21,11 @@ using namespace lldb_private::formatters; bool lldb_private::formatters::CMTimeSummaryProvider (ValueObject& valobj, Stream& stream, const TypeSummaryOptions& options) { - if (!valobj.GetCompilerType().IsValid()) + CompilerType type = valobj.GetCompilerType(); + if (!type.IsValid()) return false; - ClangASTContext *ast_ctx = valobj.GetCompilerType().GetTypeSystem()->AsClangASTContext(); + + ClangASTContext *ast_ctx = valobj.GetExecutionContextRef().GetTargetSP()->GetScratchClangASTContext(); if (!ast_ctx) return false; |