[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint
Wei-Ren Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 5 23:32:35 PDT 2017
chenwj added a comment.
@erichkeane Just share what I investigated.
In https://reviews.llvm.org/D32759#744769, @erichkeane wrote:
> In https://reviews.llvm.org/D32759#744613, @chenwj wrote:
>
> > > Ah, sorry. "Our Tests" means the lit test SemaObjC/method-bad-param.m (line 11). I ran the lit tests initially with a breakpoint on this line and it never hit, though I must have set up the debugger wrong. Once I replaced it with an assert, method-bad-param failed.
> >
> > The fix LGTM. Is it possible to tweak method-bad-param.m so that we can see the difference after the fix?
>
>
> I actually couldn't come up with a way where we COULD see the difference... I was hoiping someone else could come up with something if it were important enough for us.
I fwd to @eli.friedman who added the check. Maybe he is the right person who can explain what's going on here, and decide if this patch is okay or not.
https://reviews.llvm.org/D32759
More information about the cfe-commits
mailing list