Send shutdown signal only when the ExecutionContext exists.

ExecutionContext doesn't exist in '-fsyntax-only' mode.
This commit is contained in:
Vassil Vassilev
2013-10-08 11:07:43 +02:00
committed by sftnight
parent 409324ef76
commit f4fc65893c

View File

@ -264,8 +264,9 @@ namespace cling {
}
Interpreter::~Interpreter() {
m_ExecutionContext->shuttingDown();
Interpreter::~Interpreter() {
if (m_ExecutionContext)
m_ExecutionContext->shuttingDown();
getCI()->getDiagnostics().getClient()->EndSourceFile();
}