[all-commits] [llvm/llvm-project] 4a0ba4: [lldb] Fix pessimizing move warning

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Mon Sep 6 12:18:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a0ba4180b3655aa39c68648c7a12ce9a1cec99a
      https://github.com/llvm/llvm-project/commit/4a0ba4180b3655aa39c68648c7a12ce9a1cec99a
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-09-06 (Mon, 06 Sep 2021)

  Changed paths:
    M lldb/source/Core/PluginManager.cpp

  Log Message:
  -----------
  [lldb] Fix pessimizing move warning

lldb/source/Core/PluginManager.cpp:695:21: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
      return Status(std::move(ret.takeError()));
                    ^
lldb/source/Core/PluginManager.cpp:695:21: note: remove std::move call here
      return Status(std::move(ret.takeError()));
                    ^~~~~~~~~~               ~




More information about the All-commits mailing list