summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-03 21:45:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-03 21:45:54 +0000
commit32ffb248ac75d865b347287d3bc975b0157fdac9 (patch)
treeda9a72f7b5cb9dc254ed5768cbe06ee2cc137d45
parent93f605c22806810d6f1db59da32e28e8f81ed9c7 (diff)
downloadbcm5719-llvm-32ffb248ac75d865b347287d3bc975b0157fdac9.tar.gz
bcm5719-llvm-32ffb248ac75d865b347287d3bc975b0157fdac9.zip
CFG::SuccessorIterator: Remove explicit copy assignment, as the default is fine
There's no reason to disallow assigning an iterator from one range to an iterator that previously iterated over a disjoint range. This then follows the Rule of Zero, allowing implicit copy construction to be used without hitting the case that's deprecated in C++11. llvm-svn: 231142
-rw-r--r--llvm/include/llvm/IR/CFG.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/include/llvm/IR/CFG.h b/llvm/include/llvm/IR/CFG.h
index 56c650323e3..e958847eb62 100644
--- a/llvm/include/llvm/IR/CFG.h
+++ b/llvm/include/llvm/IR/CFG.h
@@ -167,12 +167,6 @@ public:
idx = 0;
}
- inline const Self &operator=(const Self &I) {
- assert(Term == I.Term &&"Cannot assign iterators to two different blocks!");
- idx = I.idx;
- return *this;
- }
-
/// getSuccessorIndex - This is used to interface between code that wants to
/// operate on terminator instructions directly.
unsigned getSuccessorIndex() const { return idx; }
OpenPOWER on IntegriCloud