From 640e07c49037cca41a1bfbeb916b569d8c950aea Mon Sep 17 00:00:00 2001 From: Alexander Yermolovich Date: Tue, 9 May 2023 11:37:13 -0700 Subject: [BOLT][DWARF][NFC] Fixed an assertion check Spotted this one while working on new DWARF Rewriter. We were using wrong check in assertion. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D150167 --- bolt/lib/Rewrite/DWARFRewriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bolt') diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp index cffcde821379..749d90762731 100644 --- a/bolt/lib/Rewrite/DWARFRewriter.cpp +++ b/bolt/lib/Rewrite/DWARFRewriter.cpp @@ -199,7 +199,7 @@ void DWARFRewriter::updateDebugInfo() { 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(); -- cgit v1.2.1