From 32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 27 Jun 2025 16:56:26 -0700 Subject: [CIR] Upstream support for operator assign (#145979) This adds support for assignment operators, including implicit operator definitions. --- clang/lib/CIR/CodeGen/CIRGenModule.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp') diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 0f38d9a..7198b23 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -393,12 +393,6 @@ void CIRGenModule::emitGlobal(clang::GlobalDecl gd) { void CIRGenModule::emitGlobalFunctionDefinition(clang::GlobalDecl gd, mlir::Operation *op) { auto const *funcDecl = cast(gd.getDecl()); - if (funcDecl->getIdentifier() == nullptr) { - errorNYI(funcDecl->getSourceRange().getBegin(), - "function definition with a non-identifier for a name"); - return; - } - const CIRGenFunctionInfo &fi = getTypes().arrangeGlobalDeclaration(gd); cir::FuncType funcType = getTypes().getFunctionType(fi); cir::FuncOp funcOp = dyn_cast_if_present(op); -- cgit v1.1