Protect from missing CodeGen.

This commit is contained in:
Axel Naumann 2014-04-08 17:45:49 +02:00 committed by sftnight
parent 94219bdc83
commit 04d0d17f3e

View File

@ -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);