Skip to content

Commit

Permalink
[llvm-objcopy][NFC] Add std::move() to fix older BB
Browse files Browse the repository at this point in the history
llvm-svn: 354603
  • Loading branch information
rupprecht committed Feb 21, 2019
1 parent e0ccb40 commit 93ad8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/tools/llvm-objcopy/CopyConfig.cpp
Expand Up @@ -560,7 +560,7 @@ Expected<DriverConfig> parseObjcopyOptions(ArrayRef<const char *> ArgsArr) {
"LLVM was not compiled with LLVM_ENABLE_ZLIB: cannot decompress");

DC.CopyConfigs.push_back(std::move(Config));
return DC;
return std::move(DC);
}

// ParseStripOptions returns the config and sets the input arguments. If a
Expand Down Expand Up @@ -653,7 +653,7 @@ Expected<DriverConfig> parseStripOptions(ArrayRef<const char *> ArgsArr) {
}
}

return DC;
return std::move(DC);
}

} // namespace objcopy
Expand Down

0 comments on commit 93ad8b3

Please sign in to comment.