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

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 11 08:34:27 PDT 2018


manojgupta added a comment.

@efriedma @jyknight Does the change match your expectations where warnings are still generated but codeGen does not emit nonnull attribute?



================
Comment at: test/Sema/nonnull.c:2
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fno-delete-null-pointer-checks -verify %s
 // rdar://9584012
----------------
All warnings are still issued if nullptr is passed to function nonnull attribute.


Repository:
  rC Clang

https://reviews.llvm.org/D47894





More information about the cfe-commits mailing list