[clang] [CIR] Fix calling defined functions (PR #137271)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 06:32:42 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:
Is this comment out of place? Looks like it should be with the actual multiversion stuff on 793.
https://github.com/llvm/llvm-project/pull/137271
More information about the cfe-commits
mailing list