Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()
authorAdrian Prantl <aprantl@apple.com>
Fri, 3 Nov 2017 18:00:02 +0000 (18:00 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 3 Nov 2017 18:00:02 +0000 (18:00 +0000)
commit58e9a0bb1609fb35f2580f1b91ed7c4e9eb890d7
tree24970bcaba3bfeb4bb8ddc07bb6f5b3f85a5a657
parent924cff0a3988975996bd5808d3b64e320ee73c84
Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()

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

rdar://problem/33460652

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