diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2016-07-28 22:59:03 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2016-07-28 22:59:03 +0000 |
| commit | 0ab23cf1c8c92e5fca497b1324132e5be136162e (patch) | |
| tree | 74d63c4474bbd8702c27c0b59731f852d72067b4 /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
| parent | 2fae6a77026b2401367dc9304783260ab67a4378 (diff) | |
| download | bcm5719-llvm-0ab23cf1c8c92e5fca497b1324132e5be136162e.tar.gz bcm5719-llvm-0ab23cf1c8c92e5fca497b1324132e5be136162e.zip | |
Do not remove empty lifetime.start/lifetime.end ranges
Summary:
Asan stack-use-after-scope check should poison alloca even if there is
no access between start and end.
This is possible for code like this:
for (int i = 0; i < 3; i++) {
int x;
p = &x;
}
"Loop Invariant Code Motion" will move "p = &x;" out of the loop, making
start/end range empty.
PR27453
Reviewers: eugenis
Differential Revision: https://reviews.llvm.org/D22842
llvm-svn: 277072
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions

