aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <akaylor@nvidia.com>2025-06-27 16:56:26 -0700
committerGitHub <noreply@github.com>2025-06-27 16:56:26 -0700
commit32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae (patch)
tree77f03a9f1add275cdb435dc8fa6fba7afff47241 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parent570b95218c138573dd02f82f6f85856cb019dddf (diff)
downloadllvm-32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae.zip
llvm-32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae.tar.gz
llvm-32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae.tar.bz2
[CIR] Upstream support for operator assign (#145979)
This adds support for assignment operators, including implicit operator definitions.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.cpp6
1 files changed, 0 insertions, 6 deletions
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<FunctionDecl>(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<cir::FuncOp>(op);