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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D44238: [... Artem Dergachev via Phabricator via cfe-commits
    • [PATCH] D442... John McCall via Phabricator via cfe-commits
    • [PATCH] D442... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D442... Artem Dergachev via Phabricator via cfe-commits
    • [PATCH] D442... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D442... Artem Dergachev via Phabricator via cfe-commits

Reply via email to