Fix a couple issues where trying to print a type would cause LLDB to crash

llvm-svn: 250340
This commit is contained in:
Enrico Granata 2015-10-14 22:44:50 +00:00
parent 9543803801
commit c3ef0ed5bf
1 changed files with 2 additions and 2 deletions

View File

@ -4431,7 +4431,7 @@ ClangASTContext::GetBitSize (lldb::opaque_compiler_type_t type, ExecutionContext
if (!g_printed)
{
StreamString s;
DumpTypeDescription(&s);
DumpTypeDescription(type, &s);
llvm::outs() << "warning: trying to determine the size of type ";
llvm::outs() << s.GetString() << "\n";
@ -8822,7 +8822,7 @@ void
ClangASTContext::DumpTypeDescription (lldb::opaque_compiler_type_t type)
{
StreamFile s (stdout, false);
DumpTypeDescription (&s);
DumpTypeDescription (type, &s);
ClangASTMetadata *metadata = ClangASTContext::GetMetadata (getASTContext(), type);
if (metadata)
{