Skip to content

Commit

Permalink
[Object] Remove redundant std::move.
Browse files Browse the repository at this point in the history
Found by -Wpessimizing-move.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305595 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Jun 16, 2017
1 parent c501cd4 commit d399e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Object/WindowsResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ WindowsResourceCOFFWriter::WindowsResourceCOFFWriter(
StringTable(Parser.getStringTable()) {
performFileLayout();

OutputBuffer = std::move(MemoryBuffer::getNewMemBuffer(FileSize));
OutputBuffer = MemoryBuffer::getNewMemBuffer(FileSize);
}

void WindowsResourceCOFFWriter::performFileLayout() {
Expand Down

0 comments on commit d399e11

Please sign in to comment.