summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ilist.h
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2012-03-14 22:36:10 +0000
committerFrancois Pichet <pichet2000@gmail.com>2012-03-14 22:36:10 +0000
commit4ec692317bc38588d01edb7584953c9aca4a9467 (patch)
treeb07e660508c608cd4a53b719ea7c45f3725324ae /include/llvm/ADT/ilist.h
parentb16117c368ad4e6d004ac912549b2c6ed06731a5 (diff)
downloadllvm-4ec692317bc38588d01edb7584953c9aca4a9467.tar.gz
llvm-4ec692317bc38588d01edb7584953c9aca4a9467.tar.bz2
llvm-4ec692317bc38588d01edb7584953c9aca4a9467.tar.xz
Fixes the MSVC build.
Commit r152704 exposed a latent MSVC limitation (aka bug). Both ilist and and iplist contains the same function: template<class InIt> void insert(iterator where, InIt first, InIt last) { for (; first != last; ++first) insert(where, *first); } Also ilist inherits from iplist and ilist contains a "using iplist<NodeTy>::insert". MSVC doesn't know which one to pick and complain with an error. I think it is safe to delete ilist::insert since it is redundant anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r--include/llvm/ADT/ilist.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index bcacfd9df4..ba9864a98a 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -652,10 +652,6 @@ struct ilist : public iplist<NodeTy> {
void push_front(const NodeTy &val) { insert(this->begin(), val); }
void push_back(const NodeTy &val) { insert(this->end(), val); }
- // Special forms of insert...
- template<class InIt> void insert(iterator where, InIt first, InIt last) {
- for (; first != last; ++first) insert(where, *first);
- }
void insert(iterator where, size_type count, const NodeTy &val) {
for (; count != 0; --count) insert(where, val);
}