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.cpp | |
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.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index ddcdc030d94..00d5b5fe688 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -948,11 +948,6 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, // fast register allocator would be happier... CXXThisValue = CXXABIThisValue; } - - // Sanitize the 'this' pointer once per function, if it's available. - if (CXXThisValue) - EmitTypeCheck(TCK_MemberAccess, Loc, CXXThisValue, - MD->getThisType(getContext())); } // If any of the arguments have a variably modified type, make sure to |