diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index 8061e016ca59..8b51d99ece38 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -559,8 +559,8 @@ Type::ResolveClangType (ResolveState compiler_type_resolve_state) break; case eEncodingIsTypedefUID: - m_compiler_type = encoding_type->GetForwardCompilerType ().CreateTypedef(GetName().AsCString(), - GetSymbolFile()->GetDeclContextContainingUID(GetID())); + m_compiler_type = encoding_type->GetForwardCompilerType ().CreateTypedef(m_name.AsCString("__lldb_invalid_typedef_name"), + GetSymbolFile()->GetDeclContextContainingUID(GetID())); m_name.Clear(); break; @@ -605,8 +605,8 @@ Type::ResolveClangType (ResolveState compiler_type_resolve_state) break; case eEncodingIsTypedefUID: - m_compiler_type = void_compiler_type.CreateTypedef(GetName().AsCString(), - GetSymbolFile()->GetDeclContextContainingUID(GetID())); + m_compiler_type = void_compiler_type.CreateTypedef(m_name.AsCString("__lldb_invalid_typedef_name"), + GetSymbolFile()->GetDeclContextContainingUID(GetID())); break; case eEncodingIsPointerUID: