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)
commit261ac8b23cd628fd244709427a0f59d5f4d144c4
tree17fec48ba6790218dbebf7808c295b33cf4a0544
parent36528c2a9b3d37d6692de5738697598abfb5d9c8
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.

llvm-svn: 317375
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/DebugInfo/ARM/salvage-debug-info.ll [new file with mode: 0644]