[clang] [CIR] Fix calling defined functions (PR #137271)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 09:46:22 PDT 2025
================
@@ -773,6 +773,58 @@ cir::FuncOp CIRGenModule::getOrCreateCIRFunction(
StringRef mangledName, mlir::Type funcType, GlobalDecl gd, bool forVTable,
bool dontDefer, bool isThunk, ForDefinition_t isForDefinition,
mlir::ArrayAttr extraAttrs) {
+ const Decl *d = gd.getDecl();
+
+ if (isThunk)
+ errorNYI(d->getSourceRange(), "getOrCreateCIRFunction: thunk");
+
+ // In what follows, we continue past 'errorNYI' as if nothing happened because
+ // the rest of the implementation is better than doing nothing.
+
+ // Any attempts to use a MultiVersion function should result in retrieving the
----------------
erichkeane wrote:
Fixed in classic-codegen: 785ab45c2b300ba6291d8fb21762eabc050275f6
https://github.com/llvm/llvm-project/pull/137271
More information about the cfe-commits
mailing list