[InlineFunction] Don't add lifetime markers for zero-sized allocas.
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 20 Apr 2015 16:11:05 +0000 (16:11 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 20 Apr 2015 16:11:05 +0000 (16:11 +0000)
commit2cc2b63f533cfbda9753711cdf3414f6c26cbe6a
treec541a03c10459d9dccc7f9e6b8da6b9912ddc2dc
parenta57cc8bc817f3ff7a48bfd8221562e3cc2a2bc10
[InlineFunction] Don't add lifetime markers for zero-sized allocas.

This commit fixes the code which adds lifetime markers in InlineFunction to skip
zero-sized allocas instead of asserting on them.

rdar://problem/20531155

llvm-svn: 235312
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/crash-lifetime-marker.ll [new file with mode: 0644]