[PATCH] D47894: [clang]: Add support for "-fno-delete-null-pointer-checks"

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 7 13:59:12 PDT 2018


manojgupta added a comment.

In https://reviews.llvm.org/D47894#1125406, @efriedma wrote:

> Does IR generation need any special handling for this?  We add nonnull attributes in various places.


My interpretation is adding nonnull attributes is fine as long is it is not derived from a pointer dereference. 
E.g. addresses from alloca can be treated non-null.


Repository:
  rC Clang

https://reviews.llvm.org/D47894





More information about the cfe-commits mailing list