Create GoLanguageRuntime.
GoLanguageRuntime supports finding the runtime type for Go interfaces.
llvm-svn: 249456
diff --git a/lldb/source/Symbol/GoASTContext.cpp b/lldb/source/Symbol/GoASTContext.cpp
index 6ba6190..6568b12 100644
--- a/lldb/source/Symbol/GoASTContext.cpp
+++ b/lldb/source/Symbol/GoASTContext.cpp
@@ -1184,6 +1184,9 @@
uint32_t
GoASTContext::GetIndexOfChildWithName(lldb::opaque_compiler_type_t type, const char *name, bool omit_empty_base_classes)
{
+ if (!type || !GetCompleteType(type))
+ return UINT_MAX;
+
GoType *t = static_cast<GoType *>(type);
GoStruct *s = t->GetStruct();
if (s)