Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9ddaa3

Browse filesBrowse files
[Debuginfod] Use StringRef::consume_back (NFC) (#139483)
1 parent 2e1809f commit c9ddaa3
Copy full SHA for c9ddaa3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎llvm/lib/Debuginfod/Debuginfod.cpp

Copy file name to clipboardExpand all lines: llvm/lib/Debuginfod/Debuginfod.cpp
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ static SmallVector<std::string, 0> getHeaders() {
245245
uint64_t LineNumber = 0;
246246
for (StringRef Line : llvm::split((*HeadersFile)->getBuffer(), '\n')) {
247247
LineNumber++;
248-
if (!Line.empty() && Line.back() == '\r')
249-
Line = Line.drop_back();
248+
Line.consume_back("\r");
250249
if (!isHeader(Line)) {
251250
if (!all_of(Line, llvm::isSpace))
252251
WithColor::warning()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.