Skip to content

Commit 74e06e6

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
1 parent b108fbe commit 74e06e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bolt/lib/Core/BinaryContext.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,10 @@ void BinaryContext::preprocessDebugInfo() {
17591759
dwarf::toString(CU->getUnitDIE().find(dwarf::DW_AT_name), nullptr);
17601760
if (std::optional<uint64_t> DWOID = CU->getDWOId()) {
17611761
auto Iter = DWOCUs.find(*DWOID);
1762-
assert(Iter != DWOCUs.end() && "DWO CU was not found.");
1762+
if (Iter == DWOCUs.end()) {
1763+
this->errs() << "DWO CU was not found for " << Name << '\n';
1764+
exit(1);
1765+
}
17631766
Name = dwarf::toString(
17641767
Iter->second->getUnitDIE().find(dwarf::DW_AT_name), nullptr);
17651768
}

0 commit comments

Comments
 (0)