================
@@ -62,6 +62,14 @@ class ComplexExprEmitter : public 
StmtVisitor<ComplexExprEmitter, mlir::Value> {
   mlir::Value VisitImplicitCastExpr(ImplicitCastExpr *e);
   mlir::Value VisitInitListExpr(InitListExpr *e);
 
+  mlir::Value VisitMemberExpr(MemberExpr *me) {
+    if (CIRGenFunction::ConstantEmission constant = cgf.tryEmitAsConstant(me)) 
{
+      cgf.emitIgnoredExpr(me->getBase());
----------------
andykaylor wrote:

Is it possible to have a test case that gets here? I don't think it is with 
what's currently upstreamed. If we can't test this code, I'd like to see a call 
to errorNYI here until we can.

https://github.com/llvm/llvm-project/pull/154027
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to