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

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 11:32:36 PDT 2017


aaron.ballman added inline comments.


================
Comment at: lib/Sema/Sema.cpp:441
     return;
-  if (E->getType()->isNullPtrType())
+  if (E->IgnoreImpCasts()->getType()->isNullPtrType())
     return;
----------------
Do we also want to ignore parens here as well with `Expr::IgnoreParenImpCasts()`?


https://reviews.llvm.org/D39301





More information about the cfe-commits mailing list