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 | b1eb45cd6d2491bd10c1cff34a56463f2c6bf6cd (patch) | |
tree | 0c79c14b87beaad175003d428a536bc48de064b5 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 0348cfe40e6ee913e81b65e2d353db5f6d66281d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index ddcdc030d9..00d5b5fe68 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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 |