Some transactions don't have a wrapper.

This commit is contained in:
Vassil Vassilev 2013-06-11 12:35:54 +02:00 committed by sftnight
parent 52c25a3f40
commit 6604b6b763

View File

@ -35,7 +35,7 @@ const cling::Transaction* T = gCling->getFirstTransaction();
while(T) {
if (!T->size())
printf("Empty transaction detected!\n");
if (T->getWrapperFD()->getKind() != clang::Decl::Function)
else if (T->getWrapperFD() && T->getWrapperFD()->getKind() != clang::Decl::Function)
printf("Unexpected wrapper kind!\n");
if (T->getState() != Transaction::kCommitted)
printf("Unexpected transaction state!\n");