Avoid assert in rootcling/genreflex just because there is a user error
This commit is contained in:
parent
bcb3aaa6ae
commit
cde2785b96
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user