Fix bug - check only for function arguments of pointer types.
This commit is contained in:
parent
0059a81ac3
commit
1bd499bb15
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user