ahatanak added a comment. In D136639#4006953 <https://reviews.llvm.org/D136639#4006953>, @rjmccall wrote:
> Oh, I see. That's a really unfortunate way to end up emitting this code > pattern, since ignoring the result is so common. To fix that, we'd have to > either figure out the result was unused in Sema or do a relatively complex > analysis in IRGen, though. `DiagnoseUnusedExprResult` diagnoses unused expressions in Sema, so we can modify the `PseudoObjectExpr`s when it's called. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136639/new/ https://reviews.llvm.org/D136639 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits