diff --git a/lib/Interpreter/NullDerefProtectionTransformer.cpp b/lib/Interpreter/NullDerefProtectionTransformer.cpp index 08ff2bcf..179f0ebd 100644 --- a/lib/Interpreter/NullDerefProtectionTransformer.cpp +++ b/lib/Interpreter/NullDerefProtectionTransformer.cpp @@ -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)); } }