diff options
author | Vedant Kumar <vsk@apple.com> | 2017-02-17 20:59:40 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-02-17 20:59:40 +0000 |
commit | 29ba8d9bfe6d6343a7340bfe0d09aefab3fc0d44 (patch) | |
tree | 550ee376bbad131a3c24f82f739ccba0b3a950bc /clang/lib/CodeGen/CodeGenFunction.h | |
parent | a899f8605418df16c2d43e048dd3d8158906cfe6 (diff) | |
download | bcm5719-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.h | 3 |
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. |