[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 11 22:33:51 PDT 2016
ahatanak marked an inline comment as done.
ahatanak added a comment.
(I'm replying to the comment near TreeTransform.h:11967 because phab doesn't let me hit save)
It looks like RebuildCXXPseudoDestructorExpr isn't even called because a MemberExpr is created instead of a CXXPseudoDestructorExpr.
================
Comment at: lib/Sema/TreeTransform.h:2127
+
+ if (isa<CXXDestructorDecl>(FoundDecl))
+ DNI = getDerived().TransformDeclarationNameInfo(MemberNameInfo);
----------------
rsmith wrote:
> I don't see any reason why this should be specific to destructors. But this is the wrong place for this change; by the time we reach `Rebuild*` we should have already transformed everything that we need to transform.
>
> Perhaps the problem is instead...
If we want to do the transformation before entering RebuildMemberExpr, I think it's also possible to do it in TreeTransform<Derived>::TransformMemberExpr.
https://reviews.llvm.org/D24969
More information about the cfe-commits
mailing list