Skip to content

Commit 8d3e102

Browse files
[DWARFLinker] Use an implicit conversion of SmallString to StringRef (NFC)
1 parent 003cebd commit 8d3e102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DWARFLinker/Parallel/OutputSections.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ struct SectionDescriptor : SectionDescriptorBase {
220220
/// Returns section content.
221221
StringRef getContents() override {
222222
if (SectionOffsetInsideAsmPrinterOutputStart == 0)
223-
return StringRef(Contents.data(), Contents.size());
223+
return Contents;
224224

225225
return Contents.slice(SectionOffsetInsideAsmPrinterOutputStart,
226226
SectionOffsetInsideAsmPrinterOutputEnd);

0 commit comments

Comments
 (0)