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)
commit152ac396db5b6c156816979b1590702088f22518
treeca57baabb23ae9c02f5eb8d353a461534500a53a
parent02d6f22c939cfd6e3b601f1fd14695187089e4c1
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.

llvm-svn: 227702
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/DebugInfo/X86/sroasplit-4.ll [new file with mode: 0644]