OSDN Git Service

[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)
commit63cc6a2391b082ad9e2dbc2b39fa104fb31e3e06
tree396b598aa8f3e403b967549f7af35bd35a51541a
parente616200081fa41b4f513fbcd842eff29382f59a4
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp