mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
RewriteStatepointsForGC::PhiState: Remove explicit copy ctor in favor of the Rule of Zero
The assertion was just checking a class invariant that's pretty easy to verify by inspection (no mutating operations, and the two non-copy ctors already ensure the state is maintained) so remove the explicit copy ctor in favor of the default, thus allowing the use of the default copy assignment operator without hitting the C++11 deprecation here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
017ba3988f
commit
9bc6a97f8f
@ -548,9 +548,6 @@ public:
|
||||
}
|
||||
PhiState(Value *b) : status(Base), base(b) {}
|
||||
PhiState() : status(Unknown), base(nullptr) {}
|
||||
PhiState(const PhiState &other) : status(other.status), base(other.base) {
|
||||
assert(status != Base || base);
|
||||
}
|
||||
|
||||
Status getStatus() const { return status; }
|
||||
Value *getBase() const { return base; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user