[PATCH] D32975: Make it illegal for two Functions to point to the same DISubprogram

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 16:06:27 PDT 2017


If anyone's reverting this - note you'll need to revert Gor's changes on
top of it (I forget the specific revision for his commit)

On Sun, May 28, 2017 at 4:00 PM Keno Fischer via Phabricator <
reviews at reviews.llvm.org> wrote:

> loladiro added a comment.
>
> I'm really confused by the entirety of the changes to the CloneFunction
> parts of this. The whole point of the ValueMapper is to fix up
> value/metadata references. Why do we need a manual version? Also what's up
> with the `DISubprogram::getDistinct`? The ValueMapper will create new
> distinct  nodes as it goes along unless `RF_MoveDistinctMDs` is set (which
> it isn't inside CloneFunction). Could the problem perhaps have been an
> incorrectly unset `ModuleLevelChanges` flag? I'm seeing a ton of assertion
> failures after this change. I'll submit an appropriate PR to revert the
> CloneFunction parts of this.
>
>
> Repository:
>   rL LLVM
>
> https://reviews.llvm.org/D32975
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170528/a9edc45f/attachment.html>


More information about the llvm-commits mailing list