summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-12-08 21:58:18 +0000
committerAdrian Prantl <aprantl@apple.com>2017-12-08 21:58:18 +0000
commitd13170174c656a6dbf2f4b30b638645d6e0727fd (patch)
tree48e17ffc3aa57c3277dd85aa052f4075a22f6cb5 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent195dfd10a679ed4860200e935d1ca292d09bb64b (diff)
downloadbcm5719-llvm-d13170174c656a6dbf2f4b30b638645d6e0727fd.tar.gz
bcm5719-llvm-d13170174c656a6dbf2f4b30b638645d6e0727fd.zip
Generalize llvm::replaceDbgDeclare and actually support the use-case that
is mentioned in the documentation (inserting a deref before the plus_uconst). llvm-svn: 320203
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index dc17aa6cbd5..f626c2c0b16 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -2918,7 +2918,8 @@ void FunctionStackPoisoner::processStaticAllocas() {
Value *NewAllocaPtr = IRB.CreateIntToPtr(
IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)),
AI->getType());
- replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB, DIExpression::NoDeref);
+ replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB, DIExpression::NoDeref,
+ 0, DIExpression::NoDeref);
AI->replaceAllUsesWith(NewAllocaPtr);
}
OpenPOWER on IntegriCloud