File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
llvm/lib/DWARFLinker/Classic Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -475,14 +475,19 @@ static void constructSeqOffsettoOrigRowMapping(
475
475
constexpr unsigned DummyVal = UINT32_MAX;
476
476
LineTableMapping[DummyKey] = DummyVal;
477
477
478
- for (auto [NextSeqOff, NextRow] : LineTableMapping) {
479
- auto StmtAttrSmallerThanNext = [NextSeqOff](const PatchLocation &SA) {
480
- return SA.get () < NextSeqOff;
481
- };
482
- auto SeqStartSmallerThanNext = [NextRow](const size_t &Row) {
483
- return Row < NextRow;
484
- };
478
+ size_t NextSeqOff = 0 ;
479
+ unsigned NextRow = 0 ;
480
+ auto StmtAttrSmallerThanNext = [&](const PatchLocation &SA) {
481
+ return SA.get () < NextSeqOff;
482
+ };
483
+ auto SeqStartSmallerThanNext = [&](const size_t &Row) {
484
+ return Row < NextRow;
485
+ };
485
486
487
+ for (auto It : LineTableMapping) {
488
+ NextSeqOff = It.first ;
489
+ NextRow = It.second ;
490
+
486
491
// If both StmtAttrs and SeqStartRows points to value not in
487
492
// the LineTableMapping yet, we do a dummy one to one mapping and
488
493
// move the pointer.
You can’t perform that action at this time.
0 commit comments