diff options
author | Vedant Kumar <vsk@apple.com> | 2020-09-25 13:09:47 -0700 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-09-28 09:41:18 -0700 |
commit | 06bc685fa2400cc28282ab6dd3c917d45bfa662f (patch) | |
tree | 3d812a33a02b29ca3f5d6245eb262895c283ec9d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | b5f7e9e26cd06d034bf68f63de6ae6d37b032b5e (diff) | |
download | llvm-06bc685fa2400cc28282ab6dd3c917d45bfa662f.zip llvm-06bc685fa2400cc28282ab6dd3c917d45bfa662f.tar.gz llvm-06bc685fa2400cc28282ab6dd3c917d45bfa662f.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index eb8a1125..16656de 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -3566,6 +3566,9 @@ public: // LValue Expression Emission //===--------------------------------------------------------------------===// + /// Create a check that a scalar RValue is non-null. + llvm::Value *EmitNonNullRValueCheck(RValue RV, QualType T); + /// GetUndefRValue - Get an appropriate 'undef' rvalue for the given type. RValue GetUndefRValue(QualType Ty); |