Survive failure in dyn expr building (ROOT-6824).

This commit is contained in:
Axel Naumann 2014-10-16 15:44:59 +02:00 committed by sftnight
parent 9b30bafdbc
commit bb95ca8a8f

View File

@ -688,6 +688,9 @@ namespace cling {
m_NoELoc,
ILE).get();
assert (ExprAddresses && "Could not build the void* array");
if (!ExprAddresses)
return SubTree;
m_Sema->ImpCastExprToType(ExprAddresses,
m_Context->getPointerType(m_Context->VoidPtrTy),
CK_ArrayToPointerDecay);