diff options
author | Nathan Sidwell <nathan@acm.org> | 2021-01-04 06:38:52 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2021-01-04 06:38:52 -0800 |
commit | 6288183377a0dc8f02ad415eb1ac9338507445aa (patch) | |
tree | 3cfcd8c055d24a634e0dd698c76acd4b77e5e3a2 /libcody | |
parent | 6bbc196c64ddbbb84fd40eebeafbd5a458b50afb (diff) | |
download | gcc-6288183377a0dc8f02ad415eb1ac9338507445aa.zip gcc-6288183377a0dc8f02ad415eb1ac9338507445aa.tar.gz gcc-6288183377a0dc8f02ad415eb1ac9338507445aa.tar.bz2 |
[libcody] Remove some std::move [PR 98368]
Compiling on clang showed a couple of pessimizations. Fixed thusly.
libcody/
* client.cc (Client::ProcessResponse): Remove std::move
inside ?:
c++tools/
* resolver.cc (module_resolver::cmi_response): Remove
std::move of temporary.
Diffstat (limited to 'libcody')
-rw-r--r-- | libcody/client.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libcody/client.cc b/libcody/client.cc index edfe44d..ae69d19 100644 --- a/libcody/client.cc +++ b/libcody/client.cc @@ -122,8 +122,7 @@ Packet Client::ProcessResponse (std::vector<std::string> &words, Assert (!words.empty ()); if (words[0] == u8"ERROR") return Packet (Client::PC_ERROR, - std::move (words.size () == 2 ? words[1] - : u8"malformed error response")); + words.size () == 2 ? words[1]: u8"malformed error response"); if (isLast && !read.IsAtEnd ()) return Packet (Client::PC_ERROR, |