================
@@ -1820,10 +1820,10 @@ CIRGenCallee CIRGenFunction::emitCallee(const 
clang::Expr *e) {
     // Resolve direct calls.
     const auto *funcDecl = cast<FunctionDecl>(declRef->getDecl());
     return emitDirectCallee(funcDecl);
-  } else if (isa<MemberExpr>(e)) {
-    cgm.errorNYI(e->getSourceRange(),
-                 "emitCallee: call to member function is NYI");
-    return {};
+  } else if (auto me = dyn_cast<MemberExpr>(e)) {
+    const auto *fd = cast<FunctionDecl>(me->getMemberDecl());
----------------
erichkeane wrote:

Hrmph.... that is concerning.  And yeah, the dyn_cast behavior doesn't look 
like it does anything sensible too.

Can we have a comment here explaining this, so that next-guy through realizes 
we diverged (in case this becomes a problem)?

https://github.com/llvm/llvm-project/pull/164518
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to