Protect from missing CodeGen.
This commit is contained in:
parent
94219bdc83
commit
04d0d17f3e
@ -811,6 +811,9 @@ namespace cling {
|
||||
// Compile the wrapper code.
|
||||
//
|
||||
const llvm::GlobalValue* GV = 0;
|
||||
if (!getCodeGenerator())
|
||||
return 0;
|
||||
|
||||
if (ifUnique)
|
||||
GV = getCodeGenerator()->GetModule()->getNamedValue(name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user