Skip to content

Commit 2b804f8

Browse files
committed
[LinkerWrapper][Obvious] Fix move on temporary object
Summary: This causes warnings because it is already a temporary and does not need to be moved.
1 parent 914cfa4 commit 2b804f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ getDeviceInput(const ArgList &Args) {
14391439
if (Index == CompatibleTargets.size() - 1)
14401440
InputFiles[ID].emplace_back(std::move(Binary));
14411441
else
1442-
InputFiles[ID].emplace_back(std::move(Binary.copy()));
1442+
InputFiles[ID].emplace_back(Binary.copy());
14431443
}
14441444

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

0 commit comments

Comments
 (0)