Static init triggers relocation which can fail; roll back.

This commit is contained in:
Axel Naumann 2015-01-09 09:42:00 +01:00 committed by sftnight
parent 9bae38af55
commit 67a20fea53

View File

@ -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;
}
}