[PATCH] D111639: [Sema] check PseudoObject when rebuilding CXXOperatorCallExpr in template instantiation
Bruno De Fraine via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 20 03:11:11 PDT 2021
brunodf updated this revision to Diff 380885.
brunodf edited the summary of this revision.
brunodf added a reviewer: akyrtzi.
brunodf added a subscriber: akyrtzi.
brunodf added a comment.
@rnk raises the remark that TreeTransform::RebuildCXXOperatorCallExpr already contains code to handle ObjC pseudo objects (including checking pseudo object assignment) and that calling Build*Op will re-run a lot of redundant checks.
To address this, in this updated diff, I tried to generalize the code for ObjC pseudo object handling (which originates from @akyrtzi in commit 0f99537ecac40) to handle other pseudo object kinds in addition to ObjC. I think calling `checkPseudoObjectAssignment` and `checkPseudoObjectIncDec` is critical for the PR I'm trying to solve, not sure about `CheckPlaceholderExpr`, but I retained that from @akyrtzi his patch.
Adding @akyrtzi as reviewer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111639/new/
https://reviews.llvm.org/D111639
Files:
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/PR51855.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111639.380885.patch
Type: text/x-patch
Size: 5318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211020/699ab284/attachment.bin>
More information about the cfe-commits
mailing list