This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Maintain DI when converting GEP to bitcast
ClosedPublic

Authored by ergawy on May 24 2018, 2:56 PM.

Details

Summary

When a GEP with all zero indices is converted to bitcast, its DI wasn't
copied over to the newly created instruction. This patch fixes that bug.

Diff Detail

Repository
rL LLVM

Event Timeline

ergawy created this revision.May 24 2018, 2:56 PM
ergawy added a subscriber: debug-info.
vsk accepted this revision.May 24 2018, 3:16 PM
vsk added a subscriber: vsk.

LGTM. Thanks!

This revision is now accepted and ready to land.May 24 2018, 3:16 PM
This revision was automatically updated to reflect the committed changes.
llvm/trunk/test/DebugInfo/X86/bitcast-di.ll