We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e80e3 commit b5ec9a6Copy full SHA for b5ec9a6
bolt/lib/Core/BinaryContext.cpp
@@ -1759,7 +1759,11 @@ void BinaryContext::preprocessDebugInfo() {
1759
dwarf::toString(CU->getUnitDIE().find(dwarf::DW_AT_name), nullptr);
1760
if (std::optional<uint64_t> DWOID = CU->getDWOId()) {
1761
auto Iter = DWOCUs.find(*DWOID);
1762
- assert(Iter != DWOCUs.end() && "DWO CU was not found.");
+ if (Iter == DWOCUs.end()) {
1763
+ this->errs() << "BOLT-ERROR: DWO CU was not found for " << Name
1764
+ << '\n';
1765
+ exit(1);
1766
+ }
1767
Name = dwarf::toString(
1768
Iter->second->getUnitDIE().find(dwarf::DW_AT_name), nullptr);
1769
}
0 commit comments