[all-commits] [llvm/llvm-project] 397241: [lldb] Silence -Wpessimizing-move warning

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Thu Oct 21 03:59:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39724158d38766f7d8683f78f54d80d174cae96a
      https://github.com/llvm/llvm-project/commit/39724158d38766f7d8683f78f54d80d174cae96a
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

  Log Message:
  -----------
  [lldb] Silence -Wpessimizing-move warning

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:3635:10: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
  return std::move(merged);
         ^




More information about the All-commits mailing list