[PATCH] D38656: [CGExprScalar] In EmitCompare trunc the result if it has different type as E->getType()

Guozhi Wei via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 10:22:13 PDT 2017

Carrot added a comment.

In https://reviews.llvm.org/D38656#892740, @nemanjai wrote:

> In https://reviews.llvm.org/D38656#892072, @Carrot wrote:
> > I worked on a similar bug as 31161, and then found this one, it should be same as in comment7.
> >  What is the current status of the work on that bug?
> No one has had time to finalize a fix to it. Please go ahead with this patch. If this patch indeed fixes the bug, please close it.

This patch fixes the second part of bug 31161 described in comment7. I will check it in soon.
For the first part of the bug, I will retest your patch in comment1, plus incorrect handling of type long in our case, and then send it out.


More information about the cfe-commits mailing list