Author: enrico
Date: Wed Oct 14 17:44:50 2015
New Revision: 250340
URL: http://llvm.org/viewvc/llvm-project?rev=250340&view=rev
Log:
Fix a couple issues where trying to print a type would cause LLDB to crash
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=250340&r1=250339&r2=250340&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Oct 14 17:44:50 2015
@@ -4431,7 +4431,7 @@ ClangASTContext::GetBitSize (lldb::opaqu
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)
{
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits