aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorMorris Hafner <mmha@users.noreply.github.com>2025-07-30 03:34:52 +0200
committerGitHub <noreply@github.com>2025-07-30 03:34:52 +0200
commit1132562bf3760a929dd53c372cad29fe939e7a7a (patch)
treee4f05b21a75bb066ff8b523a39653c217a01e6c4 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parentfe25445ded152df6cba2efcf053924f3f9f0e3c7 (diff)
downloadllvm-1132562bf3760a929dd53c372cad29fe939e7a7a.zip
llvm-1132562bf3760a929dd53c372cad29fe939e7a7a.tar.gz
llvm-1132562bf3760a929dd53c372cad29fe939e7a7a.tar.bz2
[CIR] Add support for C++ conversion operators (#151066)
This fairly simple addition enables codegen for C++ conversion operators
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
index 750fe97..623b84f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -1298,6 +1298,7 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) {
decl->getDeclKindName());
break;
+ case Decl::CXXConversion:
case Decl::CXXMethod:
case Decl::Function: {
auto *fd = cast<FunctionDecl>(decl);