Do not emit if there are parse or trnasformation errors.

This commit is contained in:
Axel Naumann 2015-03-17 10:53:17 +01:00 committed by sftnight
parent c91fffa352
commit f0e446aedf

View File

@ -157,7 +157,8 @@ namespace cling {
Transaction::DelayCallInfo DCI(DGR, Transaction::kCCIHandleTopLevelDecl);
m_CurTransaction->append(DCI);
if (!m_Consumer)
if (!m_Consumer
|| getTransaction()->getIssuedDiags() == Transaction::kErrors)
return true;
if (comesFromASTReader(DGR)) {