mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
[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
This commit is contained in:
parent
15a480c05e
commit
640e07c490
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user