forked from OSchip/llvm-project
Don't complete a class type just to test if it is a class. Code in CompilerType and in clang::QualType knows how to complete a type if it needs to.
llvm-svn: 260299
This commit is contained in:
parent
ef8ed0c0db
commit
36ab260b0d
|
@ -191,7 +191,7 @@ ItaniumABILanguageRuntime::GetDynamicTypeAndAddress (ValueObject &in_value,
|
|||
type_sp = class_types.GetTypeAtIndex(i);
|
||||
if (type_sp)
|
||||
{
|
||||
if (ClangASTContext::IsCXXClassType(type_sp->GetFullCompilerType ()))
|
||||
if (ClangASTContext::IsCXXClassType(type_sp->GetForwardCompilerType()))
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("0x%16.16" PRIx64 ": static-type = '%s' has multiple matching dynamic types, picking this one: uid={0x%" PRIx64 "}, type-name='%s'\n",
|
||||
|
@ -224,7 +224,7 @@ ItaniumABILanguageRuntime::GetDynamicTypeAndAddress (ValueObject &in_value,
|
|||
if (type_sp)
|
||||
{
|
||||
if (ClangASTContext::AreTypesSame (in_value.GetCompilerType(),
|
||||
type_sp->GetFullCompilerType ()))
|
||||
type_sp->GetForwardCompilerType ()))
|
||||
{
|
||||
// The dynamic type we found was the same type,
|
||||
// so we don't have a dynamic type here...
|
||||
|
|
Loading…
Reference in New Issue