summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-04-09 23:22:08 +0000
committerSean Callanan <scallanan@apple.com>2013-04-09 23:22:08 +0000
commitb0640dc2b664ba74496ae83740cf66b8fbebaa32 (patch)
tree41898b1987f0080b481e6f53ae32e432cef82c8f
parentb04e357d9bb80bd23f0301657b6b2879b380b2f8 (diff)
downloadbcm5719-llvm-b0640dc2b664ba74496ae83740cf66b8fbebaa32.tar.gz
bcm5719-llvm-b0640dc2b664ba74496ae83740cf66b8fbebaa32.zip
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> llvm-svn: 179136
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 9eea913bd8b..19ca60a7404 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -6498,6 +6498,10 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu,
}
GetClangASTContext().SetMetadata (cxx_method_decl, metadata);
}
+ else
+ {
+ return TypeSP();
+ }
}
}
else
OpenPOWER on IntegriCloud