[PATCH] D149922: Fix nullptr dereference found by Coverity static analysis tool

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 5 06:39:52 PDT 2023


erichkeane added a comment.

Looks like both ABIs that use this assume the parameter passed to `getMemberPointerInfo` is non-null.  While we DO check the type (in reality, we probably should be doing a `if (const auto *MPT = Ty->getAs<MemberPointerType>())` instead, I think this is a problem that at least SHOULD be fixed somehow.

Why was this abandoned?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149922/new/

https://reviews.llvm.org/D149922



More information about the cfe-commits mailing list