[PATCH] D23431: Remove redundant pointer map lookup

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 16:44:32 PDT 2016


I'm actually curious why this function goes out of the way to detect when
both things passed to it are completely irrelevant. Shouldn't the callers
be doing this?

On Thu, Aug 11, 2016, 4:15 PM Xinliang David Li via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> I was thinking that might be reason -- that is why I need a fresh eye
> to look at it :)
>
> thanks,
>
> David
>
>
> On Thu, Aug 11, 2016 at 3:52 PM, Michael Kuperstein <mkuper at google.com>
> wrote:
> > mkuper requested changes to this revision.
> > mkuper added a comment.
> > This revision now requires changes to proceed.
> >
> > It looks like this is on purpose:
> >
> > https://reviews.llvm.org/rL68047
> > "getEntryFor() may invalidate DenseMap iterator.
> > Walking an invalidated iterator is not a good idea."
> >
> > I think this is still true, but we should probably add a comment.
> >
> >
> > https://reviews.llvm.org/D23431
> >
> >
> >
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160811/24e54533/attachment.html>


More information about the llvm-commits mailing list