[ubsan] nullability-arg: Fix crash on C++ member pointers
authorVedant Kumar <vsk@apple.com>
Fri, 25 Sep 2020 20:09:47 +0000 (13:09 -0700)
committerVedant Kumar <vsk@apple.com>
Mon, 28 Sep 2020 16:41:18 +0000 (09:41 -0700)
commit06bc685fa2400cc28282ab6dd3c917d45bfa662f
tree3d812a33a02b29ca3f5d6245eb262895c283ec9d
parentb5f7e9e26cd06d034bf68f63de6ae6d37b032b5e
[ubsan] nullability-arg: Fix crash on C++ member pointers

Extend -fsanitize=nullability-arg to handle call sites which accept C++
member pointers.

rdar://62476022

Differential Revision: https://reviews.llvm.org/D88336
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGenCXX/ubsan-nullability-arg.cpp [new file with mode: 0644]