[all-commits] [llvm/llvm-project] 6efa36: [Clang][NFC] Avoid copies by using std::move (#146...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Mon Jul 7 17:54:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6efa366b43686bd8b1ec509e589752535507866e
      https://github.com/llvm/llvm-project/commit/6efa366b43686bd8b1ec509e589752535507866e
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/lib/CodeGen/Targets/SPIR.cpp

  Log Message:
  -----------
  [Clang][NFC] Avoid copies by using std::move (#146960)

Static analysis flagged this code as using copies when we could use move
instead. I used a temporary in some cases instead of an explicit move.



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