[PATCH] D39301: Ignore implicity casts for zero-as-null-pointer-constant warning

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 11:40:24 PDT 2017

erichkeane added inline comments.

Comment at: lib/Sema/Sema.cpp:441
-  if (E->getType()->isNullPtrType())
+  if (E->IgnoreImpCasts()->getType()->isNullPtrType())
aaron.ballman wrote:
> Do we also want to ignore parens here as well with `Expr::IgnoreParenImpCasts()`?
I don't see a reason why not!  Patch incoming.


More information about the cfe-commits mailing list