mizvekov wrote:

Yeah this is not correct, simply removing that return statement will cause us 
to attempt to use a discarded return statement for return type deduction 
purposes, but that is not supposed to happen.

That return statement is discarded, so perhaps you should return something 
which will not cause further errors as well.

I haven't fully reviewed the change that caused the regression, but I'd suspect 
you could extend the return statement with info about it being discarded.

https://github.com/llvm/llvm-project/pull/153921
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to