OSDN Git Service

[DebugInfo] Maintain DI for sunken bitcasts
authorVedant Kumar <vsk@apple.com>
Wed, 23 May 2018 22:03:48 +0000 (22:03 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 23 May 2018 22:03:48 +0000 (22:03 +0000)
commit4e24f46cfd243ee5e967603205b0d17d4af63e8a
tree0829c80ca7159b1635fbaa5de697153b2e417812
parent1352bbd3ec2fab22ce750cf738a7b3142ed798cf
[DebugInfo] Maintain DI for sunken bitcasts

When a bitcast is being sunk in -codegenprepare pass, its DI wasn't
copied over to the newly created instruction. This patch fixes that
bug.

Patch by Kareem Ergawy!

Differential Revision: https://reviews.llvm.org/D47282

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333133 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/DebugInfo/sink-bitcast-di.ll [new file with mode: 0644]