Static init triggers relocation which can fail; roll back.
This commit is contained in:
parent
9bae38af55
commit
67a20fea53
@ -419,9 +419,10 @@ namespace cling {
|
||||
if (!T->getParent()) {
|
||||
if (m_Interpreter->runStaticInitializersOnce(*T)
|
||||
>= Interpreter::kExeFirstError) {
|
||||
// Roll back on error in a transformer
|
||||
assert(0 && "Error on inits.");
|
||||
//rollbackTransaction(nestedT);
|
||||
// Roll back on error in initializers
|
||||
//assert(0 && "Error on inits.");
|
||||
rollbackTransaction(T);
|
||||
T->setState(Transaction::kRolledBackWithErrors);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user