aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-08-12 09:05:11 +0000
committerGabor Greif <ggreif@gmail.com>2009-08-12 09:05:11 +0000
commit5f0ce2b68bd4d07a9afa02fe1a744f4c98c6b17d (patch)
tree178cedd151d93208c36d21e5f19637592a86e948 /include/llvm/ADT
parent2fd98abdbf316db9e8cd2ada1ffde8981603b465 (diff)
downloadexternal_llvm-5f0ce2b68bd4d07a9afa02fe1a744f4c98c6b17d.zip
external_llvm-5f0ce2b68bd4d07a9afa02fe1a744f4c98c6b17d.tar.gz
external_llvm-5f0ce2b68bd4d07a9afa02fe1a744f4c98c6b17d.tar.bz2
catch a typo and simplify call syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/ilist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index b95e3e0..1db648b 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -323,13 +323,13 @@ class iplist : public Traits {
/// CreateLazySentinel - This method verifies whether the sentinel for the
/// list has been created and lazily makes it if not.
void CreateLazySentinel() const {
- this->Traits::ensureHead(Head);
+ this->ensureHead(Head);
}
static bool op_less(NodeTy &L, NodeTy &R) { return L < R; }
static bool op_equal(NodeTy &L, NodeTy &R) { return L == R; }
- // No fundamental reason why iplist can't by copyable, but the default
+ // No fundamental reason why iplist can't be copyable, but the default
// copy/copy-assign won't do.
iplist(const iplist &); // do not implement
void operator=(const iplist &); // do not implement
@@ -347,7 +347,7 @@ public:
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
typedef std::reverse_iterator<iterator> reverse_iterator;
- iplist() : Head(this->Traits::provideInitialHead()) {}
+ iplist() : Head(this->provideInitialHead()) {}
~iplist() {
if (!Head) return;
clear();