[PATCH] D44238: [CFG] Fix automatic destructors when a member is bound to a reference.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 4 11:39:39 PDT 2018
NoQ added inline comments.
================
Comment at: lib/Analysis/CFG.cpp:1435
/// extended by a local reference with the given initializer.
static QualType getReferenceInitTemporaryType(ASTContext &Context,
const Expr *Init,
----------------
rsmith wrote:
> Can you replace this with `Expr::skipRValueSubobjectAdjustments`? That's how we compute this elsewhere. (You'll need to skip a top-level `ExprWithCleanups` and check for the search terminating in a `MaterializeTemporaryExpr` yourself, but this will reduce duplication and fix a couple more cases this function is getting wrong).
Hmm, right, ok, yeah. I'm in no rush with this one, so i'll spend some time trying to understand what //rvalue// adjustments do we still have after rC288563.
Repository:
rC Clang
https://reviews.llvm.org/D44238
More information about the cfe-commits
mailing list