Eli Friedman 0ba29b6226 [SROA] Fix crash with lifetime intrinsic partially covering alloca.
Summary:
PromoteMemToReg looks specifically for the pattern
bitcast+lifetime.start (or a bitcast-equivalent GEP); any offset
will lead to an assertion failure.

Fixes https://llvm.org/bugs/show_bug.cgi?id=27999 .

Differential Revision: https://reviews.llvm.org/D22737

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277969 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-08 01:30:53 +00:00
..