Remove usage of DiagnosticErrorTrap
This commit is contained in:
parent
db76f2a502
commit
ab2f942c8e
@ -952,8 +952,6 @@ namespace cling {
|
|||||||
m_Consumer->getTransaction()->getCompilationOpts();
|
m_Consumer->getTransaction()->getCompilationOpts();
|
||||||
FilteringDiagConsumer::RAAI RAAITmp(*m_DiagConsumer, CO.IgnorePromptDiags);
|
FilteringDiagConsumer::RAAI RAAITmp(*m_DiagConsumer, CO.IgnorePromptDiags);
|
||||||
|
|
||||||
DiagnosticErrorTrap Trap(Diags);
|
|
||||||
|
|
||||||
llvm::CrashRecoveryContextCleanupRegistrar<Sema> CleanupSema(&S);
|
llvm::CrashRecoveryContextCleanupRegistrar<Sema> CleanupSema(&S);
|
||||||
Sema::GlobalEagerInstantiationScope GlobalInstantiations(S, /*Enabled=*/true);
|
Sema::GlobalEagerInstantiationScope GlobalInstantiations(S, /*Enabled=*/true);
|
||||||
Sema::LocalEagerInstantiationScope LocalInstantiations(S);
|
Sema::LocalEagerInstantiationScope LocalInstantiations(S);
|
||||||
@ -972,7 +970,7 @@ namespace cling {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If never entered the while block, there's a chance an error occured
|
// If never entered the while block, there's a chance an error occured
|
||||||
if (Trap.hasErrorOccurred()) {
|
if (Diags.hasErrorOccurred()) {
|
||||||
m_Consumer->getTransaction()->setIssuedDiags(Transaction::kErrors);
|
m_Consumer->getTransaction()->setIssuedDiags(Transaction::kErrors);
|
||||||
// Diags.Reset(/*soft=*/true);
|
// Diags.Reset(/*soft=*/true);
|
||||||
// Diags.getClient()->clear();
|
// Diags.getClient()->clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user