diff options
author | Alexander Yermolovich <ayermolo@meta.com> | 2023-05-09 11:37:13 -0700 |
---|---|---|
committer | Alexander Yermolovich <ayermolo@meta.com> | 2023-05-09 11:37:40 -0700 |
commit | 640e07c49037cca41a1bfbeb916b569d8c950aea (patch) | |
tree | 43775ea8f8977843ec82a8f1897bc86729bf12c6 /bolt/lib | |
parent | 15a480c05efd24adbc846b5c5b1d66439239eb43 (diff) | |
download | llvm-640e07c49037cca41a1bfbeb916b569d8c950aea.tar.gz |
[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
Diffstat (limited to 'bolt/lib')
-rw-r--r-- | bolt/lib/Rewrite/DWARFRewriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<DebugLoclistWriter>(*CU.get(), DwarfVersion, false); if (std::optional<uint64_t> 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<DebugRangeListsSectionWriter>(); |