[all-commits] [llvm/llvm-project] dff3c9: [AMDGPU] Fix -Wpessimizing-move in AMDGPUSwLowerLD...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Sun Aug 25 20:40:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dff3c9614144012afc51e0d5455512e4974c6ced
      https://github.com/llvm/llvm-project/commit/dff3c9614144012afc51e0d5455512e4974c6ced
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp

  Log Message:
  -----------
  [AMDGPU] Fix -Wpessimizing-move in AMDGPUSwLowerLDS.cpp (NFC)

/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp:260:10:
error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
  return std::move(OrderedKernels);
         ^
/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp:260:10: note: remove std::move call here
  return std::move(OrderedKernels);
         ^~~~~~~~~~              ~
1 error generated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list