[SROA] Preserve DebugLoc when rewriting alloca partitions
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>
Thu, 28 Jun 2018 18:58:30 +0000 (18:58 +0000)
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>
Thu, 28 Jun 2018 18:58:30 +0000 (18:58 +0000)
commit425df22ee30b110815813cf9ad82fe087f3a0375
tree67ed98924adb1a3e2a7de79791a5e5c742938e99
parentbc78b621694e725510f44319120bcb3bd87bf6dd
[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
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/alignment.ll