[PATCH] D153294: [clang] Do not create ExprWithCleanups while checking immediate invocation
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 21 04:25:41 PDT 2023
Fznamznon added a comment.
> Thanks! We don't have any tests that break with this change, so I assume this is not tested.
I suppose it could also be that in most cases we have enough places in Sema adding `ExprWithCleanups`. While trying to figure out why we need `ExprWithCleanups` wrapping immediate invocations I came to https://reviews.llvm.org/D63960 . There is https://reviews.llvm.org/D63960#inline-613559 asking to add wrapping that with an example, I added this example to the test and I suppose it didn't break after change since there is still an `ExprWithCleanups` around, I suppose it was added in another place.
In fact, I can't come up with the test that this patch would break. Either `ExprWithCleanups` is redundant or added by different parts of Sema.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153294/new/
https://reviews.llvm.org/D153294
More information about the cfe-commits
mailing list