[clang] [CIR] Add support for indirect calls (PR #139748)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 11:49:34 PDT 2025
================
@@ -937,8 +937,28 @@ CIRGenCallee CIRGenFunction::emitCallee(const clang::Expr *e) {
return emitDirectCallee(cgm, funcDecl);
}
- cgm.errorNYI(e->getSourceRange(), "Unsupported callee kind");
- return {};
+ assert(!cir::MissingFeatures::opCallPseudoDtor());
----------------
andykaylor wrote:
Please add a check for `dyn_cast<MemberExpr>(e)` and add an `errorNYI` for that case.
Also, the two inner `if` statements above fall through to here, but I'm not convinced we have an indirect call in those cases. Maybe add NYI handlers there too?
https://github.com/llvm/llvm-project/pull/139748
More information about the cfe-commits
mailing list