arphaman added inline comments.
================ Comment at: lib/CodeGen/CGExprComplex.cpp:156 + auto Constant = tryEmitDeclRefOrMemberExprAsConstant( + ME, ME->getMemberDecl(), /*AllowSideEffects=*/true); + if (Constant) { ---------------- rsmith wrote: > If we can (correctly) allow side-effects in the initializer here, why can we > not also do so when emitting a `DeclRefExpr`? I think that DREs can't have side-effects in any case, so I think I can remove that argument. 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