Fixed a crash in the testsuite because the wrong

type was being completed.

llvm-svn: 163440
This commit is contained in:
Sean Callanan 2012-09-08 00:49:45 +00:00
parent c635500dbb
commit 6e4100ead8

View File

@ -5600,7 +5600,7 @@ ClangASTContext::IsPossibleDynamicType (clang::ASTContext *ast,
{
bool is_complete = cxx_record_decl->isCompleteDefinition();
if (!is_complete)
is_complete = ClangASTContext::GetCompleteType (ast, clang_type);
is_complete = ClangASTContext::GetCompleteType (ast, pointee_qual_type.getAsOpaquePtr());
if (is_complete)
{