aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/ImmutableSet.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-10-10 23:35:04 +0000
committerTed Kremenek <kremenek@apple.com>2007-10-10 23:35:04 +0000
commitac6084dfc22042da72b5170f52e3ceaad978fcff (patch)
treef2a0a9d68d7dba965b368b85810085bd569fc40c /include/llvm/ADT/ImmutableSet.h
parent13a21b02374a5a5fe541dbfbd1491b25a00369f4 (diff)
downloadexternal_llvm-ac6084dfc22042da72b5170f52e3ceaad978fcff.zip
external_llvm-ac6084dfc22042da72b5170f52e3ceaad978fcff.tar.gz
external_llvm-ac6084dfc22042da72b5170f52e3ceaad978fcff.tar.bz2
Removed uninformative assertions that catch problems that will
fire anyway at runtime due to a NULL dereference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ImmutableSet.h')
-rw-r--r--include/llvm/ADT/ImmutableSet.h27
1 files changed, 5 insertions, 22 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h
index 31f4cb0..7434967 100644
--- a/include/llvm/ADT/ImmutableSet.h
+++ b/include/llvm/ADT/ImmutableSet.h
@@ -302,28 +302,11 @@ public:
//===--------------------------------------------------===//
private:
- bool isEmpty(TreeTy* T) const {
- return !T;
- }
-
- unsigned Height(TreeTy* T) const {
- return T ? T->getHeight() : 0;
- }
-
- TreeTy* Left(TreeTy* T) const {
- assert (T);
- return T->getSafeLeft();
- }
-
- TreeTy* Right(TreeTy* T) const {
- assert (T);
- return T->getRight();
- }
-
- value_type_ref Value(TreeTy* T) const {
- assert (T);
- return T->Value;
- }
+ bool isEmpty(TreeTy* T) const { return !T; }
+ unsigned Height(TreeTy* T) const { return T ? T->getHeight() : 0; }
+ TreeTy* Left(TreeTy* T) const { return T->getSafeLeft(); }
+ TreeTy* Right(TreeTy* T) const { return T->getRight(); }
+ value_type_ref Value(TreeTy* T) const { return T->Value; }
unsigned IncrementHeight(TreeTy* L, TreeTy* R) const {
unsigned hl = Height(L);