summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-08-18 00:56:58 +0000
committerVitaly Buka <vitalybuka@google.com>2016-08-18 00:56:58 +0000
commitd5ec14989d7cf87082779bf8a85750a176e1e0bd (patch)
tree0e650c447dc190ea1280d591ba51d78f5e7fc750 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent1396b9f072dade4d0a677eab40b32c1fd0a1fbe9 (diff)
downloadbcm5719-llvm-d5ec14989d7cf87082779bf8a85750a176e1e0bd.tar.gz
bcm5719-llvm-d5ec14989d7cf87082779bf8a85750a176e1e0bd.zip
[asan] Add support of lifetime poisoning into ComputeASanStackFrameLayout
Summary: We are going to combine poisoning of red zones and scope poisoning. PR27453 Reviewers: kcc, eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23623 llvm-svn: 279020
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 58e552710b7..3ad8e145815 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -2079,7 +2079,10 @@ void FunctionStackPoisoner::poisonStack() {
for (AllocaInst *AI : AllocaVec) {
ASanStackVariableDescription D = {AI->getName().data(),
ASan.getAllocaSizeInBytes(*AI),
- AI->getAlignment(), AI, 0};
+ 0,
+ AI->getAlignment(),
+ AI,
+ 0};
SVD.push_back(D);
}
// Minimal header size (left redzone) is 4 pointers,
OpenPOWER on IntegriCloud