summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-30 19:37:48 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-30 19:37:48 +0000
commit3e2659eb92aeefef87dd16ede20efd45fb034fc2 (patch)
treec006ef0d9b52cb9067065b0670436c978efd3f78 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent70fe588c889ea58c9a9d1d369bb3bbf96413e365 (diff)
downloadbcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.tar.gz
bcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.zip
Inliner: Use replaceDbgDeclareForAlloca() instead of splicing the
instruction and generalize it to optionally dereference the variable. Follow-up to r227544. llvm-svn: 227604
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 25f1f022c40..d7f290bd09c 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1739,7 +1739,7 @@ void FunctionStackPoisoner::poisonStack() {
Value *NewAllocaPtr = IRB.CreateIntToPtr(
IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)),
AI->getType());
- replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB);
+ replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB, /*Deref=*/true);
AI->replaceAllUsesWith(NewAllocaPtr);
}
OpenPOWER on IntegriCloud