diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:49:07 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:49:07 +0000 |
commit | 94690723671ac085d1fe385e854ff25451ebde24 (patch) | |
tree | 5e9e4217308b9cb78ad88c9328eb0ad85768cf3d /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | |
parent | 32ffb248ac75d865b347287d3bc975b0157fdac9 (diff) | |
download | bcm5719-llvm-94690723671ac085d1fe385e854ff25451ebde24.tar.gz bcm5719-llvm-94690723671ac085d1fe385e854ff25451ebde24.zip |
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.
llvm-svn: 231143
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 15f09a5fe4a..c7d9263158d 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -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; } |