OSDN Git Service

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)
commit604f04f397ea185b505dcc4ea8cd16bce7ccbbea
tree4eef3241de8a6bc5d2e48ea130ae13bbb39ac033
parent7c2eb4ec8b267bb3887787bf8e2afe800a72828a
Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()

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

rdar://problem/33460652

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