[DeadArgumentElim] Set pointer to DISubprogram before calling RAUW. NFC
authorPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 6 Feb 2018 11:11:28 +0000 (11:11 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 6 Feb 2018 11:11:28 +0000 (11:11 +0000)
commit714f2413042c1af42269845514e00d2145fcfb50
tree49a13aa94020b0bd512d6b7805ee57b4da2ce9d9
parente290a8cd801819850f467f2ab4e3536bcfb5de79
[DeadArgumentElim] Set pointer to DISubprogram before calling RAUW. NFC

It is better to update pointer of the DISuprogram before we call RAUW for
still live arguments of the function, because with the change reviewed in
D42541 in RAUW we compare DISubprograms rather than functions itself.

Patch by Djordje Todorovic.

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

llvm-svn: 324335
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp