[SymbolFile] SymbolFileDWARF::ParseLineTable should lock its module

As of svn rL367298, SymbolFileDWARF locks the module in many cases where
it needs to parse some aspect of the DWARF symbol file.
SymbolFileDWARF::ParseLineTable needs to lock the module because
SymbolVendor::ParseLineTable no longer locks it.

llvm-svn: 367358
This commit is contained in:
Alex Langford 2019-07-30 21:22:17 +00:00
parent 8b58371fae
commit 0723173114
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ static void ParseDWARFLineTableCallback(dw_offset_t offset,
}
bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
ASSERT_MODULE_LOCK(this);
std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
if (comp_unit.GetLineTable() != nullptr)
return true;