[Inliner] Assign dummy debug location to the memcpy for byval argument
authorYuanfang Chen <yuanfang.chen@sony.com>
Wed, 15 Mar 2023 17:14:58 +0000 (10:14 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Wed, 15 Mar 2023 17:30:28 +0000 (10:30 -0700)
commite7a2da5298dc90527c05441485def6c7b04e226a
treef7433ed0a3fc08b842b64a0bf47cb1b6b461f98f
parent471ab69f5bfaef22012996fe3a15b2e9edbded66
[Inliner] Assign dummy debug location to the memcpy for byval argument

A similar fix to D133095.

Fixes https://github.com/llvm/llvm-project/issues/58770.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D145607
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/byval-dbg.ll [new file with mode: 0644]