[LinkerWrapper] Fix calls to deleted Error constructor on older compilers
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 22 Jun 2022 13:37:54 +0000 (09:37 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 22 Jun 2022 13:39:23 +0000 (09:39 -0400)
commita9fd8b911331dad1b5f94e3aba5ce0927e632ade
tree49d093bafb3da2304fecc9ae9312425980c7c556
parentb980841652c1b178b41a9a7b0e7dec06aa058e0b
[LinkerWrapper] Fix calls to deleted Error constructor on older compilers

Summary:
A recent patch added some new code paths to the linker wrapper. Older
compilers seem to have problems with returning errors wrapped in
an Excepted type without explicitly moving them. This caused failures in
some of the buildbots. This patch fixes that.
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp