[Lldb-commits] [lldb] r250340 - Fix a couple issues where trying to print a type would cause LLDB to crash

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 14 15:44:50 PDT 2015


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)
     {




More information about the lldb-commits mailing list