llvm.org GIT mirror llvm / e2b1650
catch a typo and simplify call syntax git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78804 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 11 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
322322 /// CreateLazySentinel - This method verifies whether the sentinel for the
323323 /// list has been created and lazily makes it if not.
324324 void CreateLazySentinel() const {
325 this->Traits::ensureHead(Head);
325 this->ensureHead(Head);
326326 }
327327
328328 static bool op_less(NodeTy &L, NodeTy &R) { return L < R; }
329329 static bool op_equal(NodeTy &L, NodeTy &R) { return L == R; }
330330
331 // No fundamental reason why iplist can't by copyable, but the default
331 // No fundamental reason why iplist can't be copyable, but the default
332332 // copy/copy-assign won't do.
333333 iplist(const iplist &); // do not implement
334334 void operator=(const iplist &); // do not implement
346346 typedef std::reverse_iterator const_reverse_iterator;
347347 typedef std::reverse_iterator reverse_iterator;
348348
349 iplist() : Head(this->Traits::provideInitialHead()) {}
349 iplist() : Head(this->provideInitialHead()) {}
350350 ~iplist() {
351351 if (!Head) return;
352352 clear();