[PATCH] D20141: Check for nullptr argument.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 16:25:58 PDT 2016


tra added a comment.

I've never seen it triggered. Fix is based on the comment above the function that D==nullptr is acceptable and the fact that we are checking D in other places in this function.

Two cases where nullptr D is passed explicitly has something to do with -fblocks, but that does not seem to be used neither with CUDA nor with 'IsForDefinition' which was brought in to deal with a strange case of redefining C++ symbols in C. This is probably why it's not triggered.


http://reviews.llvm.org/D20141





More information about the cfe-commits mailing list