Debug info: When updating debug info during SROA, do not emit debug info
authorAdrian Prantl <aprantl@apple.com>
Mon, 9 Feb 2015 23:57:22 +0000 (23:57 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 9 Feb 2015 23:57:22 +0000 (23:57 +0000)
commit8abe95ce831e8316745be71ba00788dd669a5989
tree1e4b5090d750eff3dad57003c9db546e2c7522ac
parent4f1b7f31000dde3b662c42829471b520f5c1ec0d
Debug info: When updating debug info during SROA, do not emit debug info
for any padding introduced by SROA. In particular, do not emit debug info
for an alloca that represents only the padding introduced by a previous
iteration.

Fixes PR22495.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/DebugInfo/X86/sroasplit-5.ll [new file with mode: 0644]