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