We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edde45b commit e3f15dbCopy full SHA for e3f15db
clang/include/clang/AST/Type.h
@@ -6409,14 +6409,7 @@ class SpirvOperand {
6409
SpirvOperand(const SpirvOperand &Other) { *this = Other; }
6410
~SpirvOperand() {}
6411
6412
- SpirvOperand &operator=(const SpirvOperand &Other) {
6413
- if (this != &Other) {
6414
- this->Kind = Other.Kind;
6415
- this->ResultType = Other.ResultType;
6416
- this->Value = Other.Value;
6417
- }
6418
- return *this;
6419
+ SpirvOperand &operator=(const SpirvOperand &Other) = default;
6420
6421
bool operator==(const SpirvOperand &Other) const {
6422
return Kind == Other.Kind && ResultType == Other.ResultType &&
0 commit comments