diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:26:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:26:17 +0000 |
commit | d9ca757ed82937a7ff8d5aa9ef8a566f0b39a37c (patch) | |
tree | 298bdecccf58079eb3e50e5cdecd9ff160c563c6 | |
parent | 1314630ec352029b9e2413060e1e1b7e48c58f80 (diff) | |
download | bcm5719-llvm-d9ca757ed82937a7ff8d5aa9ef8a566f0b39a37c.tar.gz bcm5719-llvm-d9ca757ed82937a7ff8d5aa9ef8a566f0b39a37c.zip |
Remove the explicit SDNodeIterator::operator= in favor of the implicit default
There doesn't seem to be any need to assert that iterator assignment is
between iterators over the same node - if you want to reuse an iterator
variable to iterate another node, that's perfectly acceptable. Just
don't mix comparisons between iterators into disjoint sequences, as
usual.
llvm-svn: 231138
-rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 0b6240f7904..5ceeb74dbb2 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -2063,12 +2063,6 @@ public: } bool operator!=(const SDNodeIterator& x) const { return !operator==(x); } - const SDNodeIterator &operator=(const SDNodeIterator &I) { - assert(I.Node == Node && "Cannot assign iterators to two different nodes!"); - Operand = I.Operand; - return *this; - } - pointer operator*() const { return Node->getOperand(Operand).getNode(); } |