Construct execution context only if there is codegen enabled.
This commit is contained in:
parent
78ea68614a
commit
52c25a3f40
@ -192,7 +192,10 @@ namespace cling {
|
||||
/*SkipFunctionBodies*/false,
|
||||
/*isTemp*/true), this));
|
||||
|
||||
m_ExecutionContext.reset(new ExecutionContext());
|
||||
if (m_IncrParser->hasCodeGenerator()) {
|
||||
llvm::Module* theModule = m_IncrParser->getCodeGenerator()->GetModule();
|
||||
m_ExecutionContext.reset(new ExecutionContext(theModule));
|
||||
}
|
||||
|
||||
m_IncrParser->Initialize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user