[clang] [CIR][NFC] Delete unnecessary errorNYI call in emitDelegateCallArg (PR #193608)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 14:58:27 PDT 2026
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/193608
There was a call to errorNYI in `CIRGenFunction::emitDelegateCallArg` when the parameter decl was a `CXXRecordDecl`. This was an artifact from an older version of this function in classic codegen, which called `ErrorUnsupported` for InAlloca arguments, but that handling was deleted as part of https://reviews.llvm.org/D154007.
>From 17babd3c3ca5feaf7ba924e55fd40312f5686161 Mon Sep 17 00:00:00 2001
From: Andy Kaylor <akaylor at nvidia.com>
Date: Wed, 22 Apr 2026 14:51:14 -0700
Subject: [PATCH] [CIR][NFC] Delete unnecessary errorNYI call in
emitDelegateCallArg
There was a call to errorNYI in `CIRGenFunction::emitDelegateCallArg`
when the parameter decl was a `CXXRecordDecl`. This was an artifact
from an older version of this function in classic codegen, which
called `ErrorUnsupported` for InAlloca arguments, but that handling
was deleted as part of https://reviews.llvm.org/D154007.
---
clang/lib/CIR/CodeGen/CIRGenCall.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenCall.cpp b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
index f505bdaa28709..803d6f2c8abd4 100644
--- a/clang/lib/CIR/CodeGen/CIRGenCall.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
@@ -849,12 +849,6 @@ void CIRGenFunction::emitDelegateCallArg(CallArgList &args,
QualType type = param->getType();
- if (type->getAsCXXRecordDecl()) {
- cgm.errorNYI(param->getSourceRange(),
- "emitDelegateCallArg: record argument");
- return;
- }
-
// GetAddrOfLocalVar returns a pointer-to-pointer for references, but the
// argument needs to be the original pointer.
if (type->isReferenceType()) {
More information about the cfe-commits
mailing list