[PATCH] Tune capturing of init-captures in non-generic lambdas
Faisal Vali
faisalv at yahoo.com
Sat Nov 2 11:00:02 PDT 2013
================
Comment at: lib/Parse/ParseExprCXX.cpp:647
@@ +646,3 @@
+ if (C->Init.isUsable()) {
+ // This also performs any lvalue-to-rvalue conversions if necessary.
+ VarDecl *Var = Actions.checkInitCapture(C->Loc, C->Kind == LCK_ByRef,
----------------
I wonder if I could replace the entire MaybeODRUseExprStack business with the use of EnterExpressionEvaluationContext() here?
http://llvm-reviews.chandlerc.com/D2092
More information about the cfe-commits
mailing list