Skip to content

Commit e3f15db

Browse files
committed
Go with = default instead
1 parent edde45b commit e3f15db

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

clang/include/clang/AST/Type.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6409,14 +6409,7 @@ class SpirvOperand {
64096409
SpirvOperand(const SpirvOperand &Other) { *this = Other; }
64106410
~SpirvOperand() {}
64116411

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-
}
6412+
SpirvOperand &operator=(const SpirvOperand &Other) = default;
64206413

64216414
bool operator==(const SpirvOperand &Other) const {
64226415
return Kind == Other.Kind && ResultType == Other.ResultType &&

0 commit comments

Comments
 (0)