Fix bug - check only for function arguments of pointer types.

This commit is contained in:
CristinaCristescu 2016-04-08 15:18:25 +02:00 committed by sftnight
parent 0059a81ac3
commit 1bd499bb15

View File

@ -84,6 +84,7 @@ namespace cling {
if (ArgIndexs.test(index)) {
// Get the argument with the nonnull attribute.
Expr* Arg = CE->getArg(index);
if (Arg->getType().getTypePtr()->isPointerType())
CE->setArg(index, SynthesizeCheck(Arg));
}
}