Skip to content

Commit 421f666

Browse files
Update llvm/lib/Target/BPF/BTFDebug.cpp
Co-authored-by: Nikita Popov <[email protected]>
1 parent cc39a28 commit 421f666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/BPF/BTFDebug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ void BTFDebug::constructLineInfo(MCSymbol *Label, const DIFile *File,
10261026
LineInfo.Label = Label;
10271027
LineInfo.FileNameOff = addString(FileName);
10281028
// If file content is not available, let LineOff = 0.
1029-
auto &Content = FileContent[FileName];
1029+
const auto &Content = FileContent[FileName];
10301030
if (Line < Content.size())
10311031
LineInfo.LineOff = addString(Content[Line]);
10321032
else

0 commit comments

Comments
 (0)