summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Symbol/CompilerType.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Symbol/CompilerType.cpp b/lldb/source/Symbol/CompilerType.cpp
index 869674b7ff6..c4fc9848796 100644
--- a/lldb/source/Symbol/CompilerType.cpp
+++ b/lldb/source/Symbol/CompilerType.cpp
@@ -42,6 +42,10 @@ CompilerType::CompilerType (clang::ASTContext *ast,
m_type (qual_type.getAsOpaquePtr()),
m_type_system (ClangASTContext::GetASTContext(ast))
{
+#ifdef LLDB_CONFIGURATION_DEBUG
+ if (m_type)
+ assert(m_type_system != nullptr);
+#endif
}
CompilerType::~CompilerType()
OpenPOWER on IntegriCloud