rjmccall added inline comments.
================ Comment at: lib/CodeGen/CGExprComplex.cpp:163 + else + CGF.EmitLValue(ME->getBase()); + return *Constant; ---------------- There's an EmitIgnoredExpr you could use. Also, I think it would be fine to add a generic tryEmitMemberExprAsConstant that takes a MemberExpr and does this DRE stuff behind the scenes; it's not at all different for the different emitters. Repository: rL LLVM https://reviews.llvm.org/D36876 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits