HomePhabricator

[SROA] Preserve DebugLoc when rewriting alloca partitions

Authored by gramanas on Jun 28 2018, 11:58 AM.

Description

[SROA] Preserve DebugLoc when rewriting alloca partitions

When rewriting an alloca partition copy the DL from the
old alloca over the the new one.

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

llvm-svn: 335904

Details