[all-commits] [llvm/llvm-project] aee6b8: [ADT] Explicitly delete copy/move constructors and...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu May 26 07:58:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aee6b8efd09c014348c96b81d64961f8e7a4ab6a
      https://github.com/llvm/llvm-project/commit/aee6b8efd09c014348c96b81d64961f8e7a4ab6a
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    M llvm/include/llvm/ADT/IntervalMap.h
    M llvm/unittests/ADT/IntervalMapTest.cpp

  Log Message:
  -----------
  [ADT] Explicitly delete copy/move constructors and operator= in IntervalMap

The default implementations will perform a shallow copy instead of a deep
copy, causing some internal data structures to be shared between different
objects. Disable these operations so they don't get accidentally used.

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




More information about the All-commits mailing list