STORM-1541: Change llassert() to llassert_always(): unit tests expect.

Now that we have unit tests that require assertion failure if you try to
delete an LLInstanceTracker subclass instance with an iterator loose, having
llassert() "sometimes" compile away (whimsically, depending on platform as
well as build type!) makes those tests fail. Use llassert_always() instead.
meow-7.2.2
Nat Goodspeed 2011-09-07 18:03:25 -04:00
parent b4a1d339fc
commit 286342f705
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ protected:
virtual ~LLInstanceTracker()
{
// it's unsafe to delete instances of this type while all instances are being iterated over.
llassert(getStatic().sIterationNestDepth == 0);
llassert_always(getStatic().sIterationNestDepth == 0);
remove_();
}
virtual void setKey(KEY key) { remove_(); add_(key); }
@ -287,7 +287,7 @@ protected:
virtual ~LLInstanceTracker()
{
// it's unsafe to delete instances of this type while all instances are being iterated over.
llassert(getStatic().sIterationNestDepth == 0);
llassert_always(getStatic().sIterationNestDepth == 0);
getSet_().erase(static_cast<T*>(this));
}