File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
llvm/lib/DWARFLinker/Classic Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ static bool isTlsAddressCode(uint8_t DW_OP_Code) {
415
415
416
416
static void constructSeqOffsettoOrigRowMapping (
417
417
CompileUnit &Unit, const DWARFDebugLine::LineTable <,
418
- DenseMap<size_t , unsigned > &SeqOffToOrigRow) {
418
+ DenseMap<uint64_t , unsigned > &SeqOffToOrigRow) {
419
419
420
420
// Use std::map for ordered iteration.
421
421
std::map<uint64_t , unsigned > LineTableMapping;
@@ -476,13 +476,14 @@ static void constructSeqOffsettoOrigRowMapping(
476
476
LineTableMapping[DummyKey] = DummyVal;
477
477
478
478
for (auto [NextSeqOff, NextRow] : LineTableMapping) {
479
- auto StmtAttrSmallerThanNext = [NextSeqOff](const PatchLocation &SA) {
480
- return SA.get () < NextSeqOff;
479
+ // Explict capture to avoid capturing structured bindings and make C++17
480
+ // happy.
481
+ auto StmtAttrSmallerThanNext = [N = NextSeqOff](const PatchLocation &SA) {
482
+ return SA.get () < N;
481
483
};
482
- auto SeqStartSmallerThanNext = [NextRow](const size_t &Row) {
483
- return Row < NextRow ;
484
+ auto SeqStartSmallerThanNext = [N = NextRow](const size_t &Row) {
485
+ return Row < N ;
484
486
};
485
-
486
487
// If both StmtAttrs and SeqStartRows points to value not in
487
488
// the LineTableMapping yet, we do a dummy one to one mapping and
488
489
// move the pointer.
You can’t perform that action at this time.
0 commit comments