[all-commits] [llvm/llvm-project] 857bf5: [FIX] Do not copy an llvm::function_ref if it has ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Sat Feb 15 22:55:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 857bf5da35af8e1f9425e1865dab5f5fce5e38f2
      https://github.com/llvm/llvm-project/commit/857bf5da35af8e1f9425e1865dab5f5fce5e38f2
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-16 (Sun, 16 Feb 2020)

  Changed paths:
    M clang/include/clang/AST/OpenMPClause.h

  Log Message:
  -----------
  [FIX] Do not copy an llvm::function_ref if it has to be reused

Some buildbots signaled a problem in this method when the
llvm::function_ref was copied and reused after 1228d42ddab8. To
eliminate the problem we avoid copying the llvm::function_ref and
instead we pass it as a const reference.




More information about the All-commits mailing list