diff options
| author | Tamas Berghammer <tberghammer@google.com> | 2015-10-09 12:43:08 +0000 |
|---|---|---|
| committer | Tamas Berghammer <tberghammer@google.com> | 2015-10-09 12:43:08 +0000 |
| commit | 69d0b330dd8eb7cb9a55bd8f32902151c19c4f08 (patch) | |
| tree | 9153dfdfa4dd81faf6245b42ad721882c5ab60fc /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | |
| parent | 3a6b82b6056dc53cba2c055a73bc9c56b0cae27a (diff) | |
| download | bcm5719-llvm-69d0b330dd8eb7cb9a55bd8f32902151c19c4f08.tar.gz bcm5719-llvm-69d0b330dd8eb7cb9a55bd8f32902151c19c4f08.zip | |
Fix a crash, an UB and add some assert to dwo symbol file handling
llvm-svn: 249827
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 5b2de703635..e9cbd8cde72 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -1555,6 +1555,8 @@ SymbolFileDWARF::CompleteType (CompilerType &compiler_type) DWARFDebugInfo* debug_info = DebugInfo(); DWARFDIE dwarf_die = debug_info->GetDIE(die_it->getSecond()); + assert(UserIDMatches(die_it->getSecond().GetUID()) && "CompleteType called on the wrong SymbolFile"); + // Once we start resolving this type, remove it from the forward declaration // map in case anyone child members or other types require this type to get resolved. // The type will get resolved when all of the calls to SymbolFileDWARF::ResolveClangOpaqueTypeDefinition |

