OSDN Git Service

Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()
authorAdrian Prantl <aprantl@apple.com>
Fri, 3 Nov 2017 21:55:03 +0000 (21:55 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 3 Nov 2017 21:55:03 +0000 (21:55 +0000)
commit29c52e4fc98639c2efa726a567d2a85bd91233c2
tree725138c3ce457761dd831db23adf425b655e4fda
parentcdc57825ed64b0995a34dcbf9f330e8b2d5cd5bd
Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()

This preserves the debug info for the cast operation in the original location.

rdar://problem/33460652

Reapplied r317340 with the test moved into an ARM-specific directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317375 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
lib/Transforms/Utils/Local.cpp
test/DebugInfo/ARM/salvage-debug-info.ll [new file with mode: 0644]