summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-02-17 01:42:36 +0000
committerVedant Kumar <vsk@apple.com>2017-02-17 01:42:36 +0000
commit4f94a94bea308938a0ef2cc591b158f787ebd5d3 (patch)
tree300e50b21d6f4e28dda36f9299b1d22612685ac0 /clang/lib/CodeGen/CodeGenFunction.cpp
parent95ed51dcfe578047734aa91476132d09c3683f9a (diff)
downloadbcm5719-llvm-4f94a94bea308938a0ef2cc591b158f787ebd5d3.tar.gz
bcm5719-llvm-4f94a94bea308938a0ef2cc591b158f787ebd5d3.zip
Revert "[ubsan] Reduce null checking of C++ object pointers (PR27581)"
This reverts commit r295391. It breaks this bot: http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/1898 I need to not rely on labels in the IR test. llvm-svn: 295396
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp5
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
OpenPOWER on IntegriCloud