Skip to content

Commit d36b841

Browse files
committed
[DebugInfo] Fix pessimizing move. NFC.
DWARFDebugPubTable.cpp:80:31: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
1 parent ca4d8da commit d36b841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void DWARFDebugPubTable::extract(
7777
RecoverableErrorHandler(createStringError(
7878
errc::invalid_argument,
7979
"name lookup table at offset 0x%" PRIx64 " parsing failed: %s",
80-
SetOffset, toString(std::move(C.takeError())).c_str()));
80+
SetOffset, toString(C.takeError()).c_str()));
8181
continue;
8282
}
8383
if (C.tell() != Offset)

0 commit comments

Comments
 (0)