[all-commits] [llvm/llvm-project] f7991a: [clang][AST] Pass ProfileArguments by value in fin...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Sun May 11 20:55:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7991aae5e2a7be1d3118591bc41ec36b296fecc
      https://github.com/llvm/llvm-project/commit/f7991aae5e2a7be1d3118591bc41ec36b296fecc
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2025-05-11 (Sun, 11 May 2025)

  Changed paths:
    M clang/include/clang/AST/DeclTemplate.h
    M clang/lib/AST/DeclTemplate.cpp

  Log Message:
  -----------
  [clang][AST] Pass ProfileArguments by value in findSpecialization{Impl,Locally} (#139489)

The arguments passed are lightweight (an ArrayRef and a pointer), and
findSpecializationImpl passes them to multiple functions, making it a
potential hazard to pass them by rvalue reference (even though no one
was in fact moving them).



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