================
@@ -2842,9 +2842,14 @@ RValue CIRGenFunction::emitCXXMemberCallExpr(const 
CXXMemberCallExpr *ce,
   const auto *me = cast<MemberExpr>(callee);
   const auto *md = cast<CXXMethodDecl>(me->getMemberDecl());
 
+  // Although Sema normally represents static method calls as ordinary
+  // CallExpr nodes, retain defensive handling here for parity with classic
+  // Clang (CGExprCXX.cpp:200) in case a CXXMemberCallExpr node is encountered.
   if (md->isStatic()) {
-    cgm.errorNYI(ce->getSourceRange(), "emitCXXMemberCallExpr: static method");
-    return RValue::get(nullptr);
+    emitIgnoredExpr(me->getBase());
----------------
andykaylor wrote:

It's not clear to me what this is doing. This doesn't match the classic codegen 
implementation referenced above.

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

Reply via email to