From e550d11d341a967a668b21753f7b13d677b83b8d Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 23 Feb 2017 01:22:38 +0000 Subject: Rename a helper function, NFC. llvm-svn: 295918 --- clang/lib/CodeGen/CodeGenFunction.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 80a9a0e5b11..99ab1a19361 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2030,8 +2030,9 @@ public: llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L); llvm::BasicBlock *GetIndirectGotoBlock(); - /// Check if the null check for \p ObjectPointer can be skipped. - static bool CanElideObjectPointerNullCheck(const Expr *ObjectPointer); + /// Check if \p E is a reference, or a C++ "this" pointer wrapped in value- + /// preserving casts. + static bool IsDeclRefOrWrappedCXXThis(const Expr *E); /// EmitNullInitialization - Generate code to set a value of the given type to /// null, If the type contains data member pointers, they will be initialized -- cgit v1.2.3