================ Comment at: lib/Sema/SemaExprCXX.cpp:744-750 @@ +743,9 @@ + // This is a generic lambda call operator that is being instantiated + // within an NSDMI - use the enclosing class as 'this'. There is no + // enclosing member function to retrieve the 'this' pointer from. + QualType ClassTy = Context.getTypeDeclType( + cast<CXXRecordDecl>(CurContext->getParent()->getParent())); + // Unlike for within methods, we don't have to worry about adding + // CVR qualifications in this context. Just get the pointer to + // the enclosing class. + return Context.getPointerType(ClassTy); ---------------- Instead of these comments, I'd say "There are no cv-qualifiers, per [expr.prim.general]p4." Also, please use "default initializer" rather than "NSDMI".
http://reviews.llvm.org/D3935 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
