[PATCH] D42794: [DeadArgumentElimination] Update pointer to the DISubprogram before calling RAUW. NFC

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 09:55:14 PST 2018


djtodoro added a comment.

@aprantl All test cases pass. That is why RAUW has redundant check (getLocalFunctionMetadata for From and To). Maybe in some cases LLVM PASS just did not get the place where actually it updates the pointer to the DISubprogram (or it was pointer to the function before https://reviews.llvm.org/D42541)  and if it is null at that particular point that does not mean that it clobbers dbg info (because it would be != than other metadata at the time).


Repository:
  rL LLVM

https://reviews.llvm.org/D42794





More information about the llvm-commits mailing list