summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-02-17 20:59:40 +0000
committerVedant Kumar <vsk@apple.com>2017-02-17 20:59:40 +0000
commit29ba8d9bfe6d6343a7340bfe0d09aefab3fc0d44 (patch)
tree550ee376bbad131a3c24f82f739ccba0b3a950bc /clang/lib/CodeGen/CodeGenFunction.h
parenta899f8605418df16c2d43e048dd3d8158906cfe6 (diff)
downloadbcm5719-llvm-29ba8d9bfe6d6343a7340bfe0d09aefab3fc0d44.tar.gz
bcm5719-llvm-29ba8d9bfe6d6343a7340bfe0d09aefab3fc0d44.zip
Revert "Retry: [ubsan] Reduce null checking of C++ object pointers (PR27581)"
This reverts commit r295401. It breaks the ubsan self-host. It inserts object size checks once per C++ method which fire when the structure is empty. llvm-svn: 295494
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 406e3db7969..b830df73ca7 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2030,9 +2030,6 @@ 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);
-
/// EmitNullInitialization - Generate code to set a value of the given type to
/// null, If the type contains data member pointers, they will be initialized
/// to -1 in accordance with the Itanium C++ ABI.
OpenPOWER on IntegriCloud