[clang] [CIR][NFC] Delete unnecessary errorNYI call in emitDelegateCallArg (PR #193608)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 14:58:57 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clangir
@llvm/pr-subscribers-clang
Author: Andy Kaylor (andykaylor)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/193608.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenCall.cpp (-6)
``````````diff
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()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/193608
More information about the cfe-commits
mailing list