[all-commits] [llvm/llvm-project] 4e288a: [Inline] Fix a warning by removing an explicit cop...

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jul 25 06:57:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e288a85283fe632cbdf004abc2ca7a7711823f3
      https://github.com/llvm/llvm-project/commit/4e288a85283fe632cbdf004abc2ca7a7711823f3
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/InlineCost.h

  Log Message:
  -----------
  [Inline] Fix a warning by removing an explicit copy constructor

This patches fixes the warning:

  llvm/include/llvm/Analysis/InlineCost.h:62:3: error: definition of
  implicit copy assignment operator for 'CostBenefitPair' is
  deprecated because it has a user-declared copy constructor
  [-Werror,-Wdeprecated-copy]

by removing the explicit copy constructor.




More information about the All-commits mailing list