diff --git a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h index 81003455da424..e68d64820a72c 100644 --- a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h +++ b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h @@ -174,6 +174,8 @@ class LiveIntervalUnion { public: Array() = default; + Array &operator=(const Array &other) = delete; + Array(const Array &other) = delete; ~Array() { clear(); } // Initialize the array to have Size entries.