[all-commits] [llvm/llvm-project] a919a3: [CodeGen][NFC] Declare copy constructor & copy ass...

KanRobert via All-commits all-commits at lists.llvm.org
Fri May 26 18:36:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a919a3a1e739ce18d6c3026c553846544c2168e8
      https://github.com/llvm/llvm-project/commit/a919a3a1e739ce18d6c3026c553846544c2168e8
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2023-05-27 (Sat, 27 May 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/ScheduleDAG.h

  Log Message:
  -----------
  [CodeGen][NFC] Declare copy constructor & copy assignment as deleted for ScheduleDAG

ScheduleDAG has derived classes ScheduleDAGVLIW and ScheduleDAGRRList,
which own resources that are freed in their destructors. Static analyzer
warns b/c they do not have user-written copy constructors.

According to the design of ScheduleDAG, it seems that it should always
be passed by reference. So I declare them as deleted in this patch.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D151538




More information about the All-commits mailing list