================ @@ -584,6 +584,12 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) { return lv; } + if (const auto *bd = dyn_cast<BindingDecl>(nd)) { + assert(!e->refersToEnclosingVariableOrCapture() && + !cir::MissingFeatures::lambdaCaptures()); ---------------- andykaylor wrote:
Can you make this use errorNYI instead? https://github.com/llvm/llvm-project/pull/151073 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits