[all-commits] [llvm/llvm-project] e966a5: [lldb] Remove Scalar operator= overloads

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Jun 11 04:55:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e966a5deaa50f1ddca3810e945acd14b899824c7
      https://github.com/llvm/llvm-project/commit/e966a5deaa50f1ddca3810e945acd14b899824c7
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M lldb/include/lldb/Utility/Scalar.h
    M lldb/source/Utility/Scalar.cpp

  Log Message:
  -----------
  [lldb] Remove Scalar operator= overloads

The are not needed as Scalar is implicitly constructible from all of
these types (so the compiler will use a combination of a constructor +
move assignment instead), and they make it very easy for implementations
of assignment and construction operations to diverge.




More information about the All-commits mailing list