Make if-checks asserts, because those cases are not expected anymore.

This commit is contained in:
Vassil Vassilev 2013-06-27 12:32:25 +02:00 committed by sftnight
parent 059b031f4d
commit 32f1010977

View File

@ -579,9 +579,9 @@ namespace cling {
WrapInput(Wrapper, WrapperName);
const Transaction* lastT = m_IncrParser->Compile(Wrapper, CO);
assert(lastT->getState() == Transaction::kCommitted && "Must be committed");
if (lastT->getIssuedDiags() == Transaction::kNone)
if (lastT->getState() == Transaction::kCommitted
&& RunFunction(lastT->getWrapperFD()) < kExeFirstError)
if (RunFunction(lastT->getWrapperFD()) < kExeFirstError)
return Interpreter::kSuccess;
return Interpreter::kFailure;