Avoid assert in rootcling/genreflex just because there is a user error

This commit is contained in:
Philippe Canal 2013-09-15 13:18:49 -05:00 committed by sftnight
parent bcb3aaa6ae
commit cde2785b96
2 changed files with 4 additions and 1 deletions

View File

@ -519,7 +519,9 @@ namespace cling {
// Get rid of the declaration. If the declaration has name we should
// heal the lookup tables as well
Successful = DeclRev.RevertDecl(*Di) && Successful;
#ifdef NDEBUG
assert(Successful && "Cannot handle that yet!");
#endif
}
}

View File

@ -135,7 +135,8 @@ namespace cling {
const Transaction* T = getFirstTransaction();
const Transaction* nextT = 0;
while (T) {
assert((T->getState() == Transaction::kCommitted
assert((T->getState() == Transaction::kCommitted
|| T->getState() == Transaction::kRolledBackWithErrors
|| T->getState() == Transaction::kRolledBack)
&& "Not committed?");
nextT = T->getNext();