mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
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
This commit is contained in:
@@ -302,28 +302,11 @@ public:
|
|||||||
//===--------------------------------------------------===//
|
//===--------------------------------------------------===//
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool isEmpty(TreeTy* T) const {
|
bool isEmpty(TreeTy* T) const { return !T; }
|
||||||
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(); }
|
||||||
unsigned Height(TreeTy* T) const {
|
value_type_ref Value(TreeTy* T) const { return T->Value; }
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned IncrementHeight(TreeTy* L, TreeTy* R) const {
|
unsigned IncrementHeight(TreeTy* L, TreeTy* R) const {
|
||||||
unsigned hl = Height(L);
|
unsigned hl = Height(L);
|
||||||
|
Reference in New Issue
Block a user