diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 24f3ae78e857b..1a87608e5be34 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -6409,12 +6409,7 @@ class SpirvOperand { SpirvOperand(const SpirvOperand &Other) { *this = Other; } ~SpirvOperand() {} - SpirvOperand &operator=(const SpirvOperand &Other) { - this->Kind = Other.Kind; - this->ResultType = Other.ResultType; - this->Value = Other.Value; - return *this; - } + SpirvOperand &operator=(const SpirvOperand &Other) = default; bool operator==(const SpirvOperand &Other) const { return Kind == Other.Kind && ResultType == Other.ResultType &&