[Lldb-commits] [lldb] r179136 - Don't erroneously put FunctionDecls into CXXRecordDecls

Sean Callanan scallanan at apple.com
Tue Apr 9 16:22:08 PDT 2013


Author: spyffe
Date: Tue Apr  9 18:22:08 2013
New Revision: 179136

URL: http://llvm.org/viewvc/llvm-project?rev=179136&view=rev
Log:
Don't erroneously put FunctionDecls into CXXRecordDecls
if we didn't want to put in a CXXConstructorDecl.  This
prevents malformed classes (i.e., classes with regular C
functions as members) from being generated from type
information (and fixes a crash in the test suite).

<rdar://problem/13550765>

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=179136&r1=179135&r2=179136&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Apr  9 18:22:08 2013
@@ -6498,6 +6498,10 @@ SymbolFileDWARF::ParseType (const Symbol
                                                         }
                                                         GetClangASTContext().SetMetadata (cxx_method_decl, metadata);
                                                     }
+                                                    else
+                                                    {
+                                                        return TypeSP();
+                                                    }
                                                 }
                                             }
                                             else





More information about the lldb-commits mailing list