summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2017-09-20 22:53:08 +0000
committerMatt Morehouse <mascasa@google.com>2017-09-20 22:53:08 +0000
commit4881a23ca8127768c212ba271ca6ec4fe8930893 (patch)
tree1320adf7bb10b43aea4b807bfb768de544c02807 /clang/lib/CodeGen/CGClass.cpp
parentd44afff1b6ae85678c939a682e5f9df64536ef9a (diff)
downloadbcm5719-llvm-4881a23ca8127768c212ba271ca6ec4fe8930893.tar.gz
bcm5719-llvm-4881a23ca8127768c212ba271ca6ec4fe8930893.zip
[MSan] Disable sanitization for __sanitizer_dtor_callback.
Summary: Eliminate unnecessary instrumentation at __sanitizer_dtor_callback call sites. Fixes https://github.com/google/sanitizers/issues/861. Reviewers: eugenis, kcc Reviewed By: eugenis Subscribers: vitalybuka, llvm-commits, cfe-commits, hiraditya Differential Revision: https://reviews.llvm.org/D38063 llvm-svn: 313831
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 6a41110982f..1ebe5219cd1 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1577,6 +1577,7 @@ namespace {
static void EmitSanitizerDtorCallback(CodeGenFunction &CGF, llvm::Value *Ptr,
CharUnits::QuantityType PoisonSize) {
+ CodeGenFunction::SanitizerScope SanScope(&CGF);
// Pass in void pointer and size of region as arguments to runtime
// function
llvm::Value *Args[] = {CGF.Builder.CreateBitCast(Ptr, CGF.VoidPtrTy),
OpenPOWER on IntegriCloud