Guard against self-assignment; NFC (#145743)
This was caught by a static analysis tool and seemed like a reasonable
code quality improvement.
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 24f3ae7..1a87608 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -6409,12 +6409,7 @@
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 &&