Fix PR22393. When recursively replacing an aggregate with a smaller
authorAdrian Prantl <aprantl@apple.com>
Sun, 1 Feb 2015 00:58:04 +0000 (00:58 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sun, 1 Feb 2015 00:58:04 +0000 (00:58 +0000)
commit58e57f1604ec72d2b73a66e3b6d93327f4c73f85
treede81ddd6763acd906828f2e21145bca375d94bec
parentd2923661ff08900b1121e5ae08781ddc9c7c7b41
Fix PR22393. When recursively replacing an aggregate with a smaller
aggregate or scalar, the debug info needs to refer to the absolute offset
(relative to the entire variable) instead of storing the offset inside
the smaller aggregate.

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