[all-commits] [llvm/llvm-project] bcbb04: [clang] Add explicit std::move(...) to avoid a few...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Sun Feb 15 08:35:20 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcbb04acf5b136b98ce1edf4cbd0de283ca24756
      https://github.com/llvm/llvm-project/commit/bcbb04acf5b136b98ce1edf4cbd0de283ca24756
  Author: serge-sans-paille <sguelton at mozilla.com>
  Date:   2026-02-15 (Sun, 15 Feb 2026)

  Changed paths:
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/LayoutOverrideSource.cpp

  Log Message:
  -----------
  [clang] Add explicit std::move(...) to avoid a few copies (#180478)

Moving an std::shared_ptr is always profitable (marginally).

Moving a clang::LayoutOverrideSource::Layout may be profitable depending
on the size of the underlying llvm::SmallVector.

Changes suggested by performance-use-std-move from #179467



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