Skip to content

Commit

Permalink
[LinkerWrapper][Obvious] Fix move on temporary object
Browse files Browse the repository at this point in the history
Summary:
This causes warnings because it is already a temporary and does not need
to be moved.
  • Loading branch information
jhuber6 committed Jan 18, 2024
1 parent 914cfa4 commit 2b804f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ getDeviceInput(const ArgList &Args) {
if (Index == CompatibleTargets.size() - 1)
InputFiles[ID].emplace_back(std::move(Binary));
else
InputFiles[ID].emplace_back(std::move(Binary.copy()));
InputFiles[ID].emplace_back(Binary.copy());
}

// If we extracted any files we need to check all the symbols again.
Expand Down

0 comments on commit 2b804f8

Please sign in to comment.