| commit | 0ab23cf1c8c92e5fca497b1324132e5be136162e | [log] [tgz] |
|---|---|---|
| author | Vitaly Buka <vitalybuka@google.com> | Thu Jul 28 22:59:03 2016 +0000 |
| committer | Vitaly Buka <vitalybuka@google.com> | Thu Jul 28 22:59:03 2016 +0000 |
| tree | 74d63c4474bbd8702c27c0b59731f852d72067b4 | |
| parent | 2fae6a77026b2401367dc9304783260ab67a4378 [diff] |
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