diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp --- a/bolt/lib/Rewrite/DWARFRewriter.cpp +++ b/bolt/lib/Rewrite/DWARFRewriter.cpp @@ -199,7 +199,7 @@ std::make_unique(*CU.get(), DwarfVersion, false); if (std::optional DWOId = CU->getDWOId()) { - assert(LocListWritersByCU.count(*DWOId) == 0 && + assert(RangeListsWritersByCU.count(*DWOId) == 0 && "RangeLists writer for DWO unit already exists."); auto RangeListsSectionWriter = std::make_unique();