[llvm] r214260 - UseListOrder: Remove move assignment
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Jul 29 17:05:02 PDT 2014
Author: dexonsmith
Date: Tue Jul 29 19:05:02 2014
New Revision: 214260
URL: http://llvm.org/viewvc/llvm-project?rev=214260&view=rev
Log:
UseListOrder: Remove move assignment
Remove the move assignment added in r214213, since it wasn't necessary
to fix the bots (r214224 was the magic touch).
Modified:
llvm/trunk/include/llvm/IR/UseListOrder.h
Modified: llvm/trunk/include/llvm/IR/UseListOrder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/UseListOrder.h?rev=214260&r1=214259&r2=214260&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/UseListOrder.h (original)
+++ llvm/trunk/include/llvm/IR/UseListOrder.h Tue Jul 29 19:05:02 2014
@@ -54,15 +54,12 @@ class UseListShuffleVector {
UseListShuffleVector(const UseListShuffleVector &X) LLVM_DELETED_FUNCTION;
UseListShuffleVector &
operator=(const UseListShuffleVector &X) LLVM_DELETED_FUNCTION;
+ UseListShuffleVector &
+ operator=(UseListShuffleVector &&X) LLVM_DELETED_FUNCTION;
public:
UseListShuffleVector() : Size(0) {}
UseListShuffleVector(UseListShuffleVector &&X) { moveUnchecked(X); }
- UseListShuffleVector &operator=(UseListShuffleVector &&X) {
- destroy();
- moveUnchecked(X);
- return *this;
- }
explicit UseListShuffleVector(size_t Size) : Size(Size) {
if (!isSmall())
Storage.Ptr = new unsigned[Size];
@@ -93,16 +90,11 @@ struct UseListOrder {
UseListOrder() : V(0), F(0) {}
UseListOrder(UseListOrder &&X)
: V(X.V), F(X.F), Shuffle(std::move(X.Shuffle)) {}
- UseListOrder &operator=(UseListOrder &&X) {
- V = X.V;
- F = X.F;
- Shuffle = std::move(X.Shuffle);
- return *this;
- }
private:
UseListOrder(const UseListOrder &X) LLVM_DELETED_FUNCTION;
UseListOrder &operator=(const UseListOrder &X) LLVM_DELETED_FUNCTION;
+ UseListOrder &operator=(UseListOrder &&X) LLVM_DELETED_FUNCTION;
};
typedef std::vector<UseListOrder> UseListOrderStack;
More information about the llvm-commits
mailing list