summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ilist.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-25 00:05:04 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-25 00:05:04 +0000
commitf63097f223459a2f1125ab68afd61b364eda9312 (patch)
treed33e85f56f1150ba4149342c4dde86e3dd6a002f /include/llvm/ADT/ilist.h
parent2e193f80ebd0230d541013206dd13b0cb2a2d094 (diff)
downloadllvm-f63097f223459a2f1125ab68afd61b364eda9312.tar.gz
llvm-f63097f223459a2f1125ab68afd61b364eda9312.tar.bz2
llvm-f63097f223459a2f1125ab68afd61b364eda9312.tar.xz
--- Reverse-merging r79938 into '.':
U include/llvm/BasicBlock.h U include/llvm/ADT/ilist_node.h U include/llvm/ADT/ilist.h U include/llvm/CodeGen/SelectionDAG.h U include/llvm/CodeGen/MachineFunction.h U include/llvm/CodeGen/MachineBasicBlock.h U include/llvm/Function.h Revert r79938. It was causing self-hosting build failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r--include/llvm/ADT/ilist.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index 1a3571dea5..1db648b0ff 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -39,15 +39,8 @@
#define LLVM_ADT_ILIST_H
#include "llvm/ADT/iterator.h"
-#include "llvm/Config/config.h"
#include <cassert>
-#if defined(LLVM_COMPACT_SENTINELS) && LLVM_COMPACT_SENTINELS
-# define sentinel_tail_assert(COND)
-#else
-# define sentinel_tail_assert(COND) assert(COND)
-#endif
-
namespace llvm {
template<typename NodeTy, typename Traits> class iplist;
@@ -196,12 +189,12 @@ public:
// Accessors...
operator pointer() const {
- sentinel_tail_assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!");
+ assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!");
return NodePtr;
}
reference operator*() const {
- sentinel_tail_assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!");
+ assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!");
return *NodePtr;
}
pointer operator->() const { return &operator*(); }
@@ -222,7 +215,7 @@ public:
}
ilist_iterator &operator++() { // preincrement - Advance
NodePtr = Traits::getNext(NodePtr);
- sentinel_tail_assert(NodePtr && "++'d off the end of an ilist!");
+ assert(NodePtr && "++'d off the end of an ilist!");
return *this;
}
ilist_iterator operator--(int) { // postdecrement operators...