Skip to content

Commit 640e07c

Browse files
committed
[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
1 parent 15a480c commit 640e07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void DWARFRewriter::updateDebugInfo() {
199199
std::make_unique<DebugLoclistWriter>(*CU.get(), DwarfVersion, false);
200200

201201
if (std::optional<uint64_t> DWOId = CU->getDWOId()) {
202-
assert(LocListWritersByCU.count(*DWOId) == 0 &&
202+
assert(RangeListsWritersByCU.count(*DWOId) == 0 &&
203203
"RangeLists writer for DWO unit already exists.");
204204
auto RangeListsSectionWriter =
205205
std::make_unique<DebugRangeListsSectionWriter>();

0 commit comments

Comments
 (0)