[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue May 27 03:34:02 PDT 2025
================
@@ -385,6 +385,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) {
break;
}
+ case Type::Complex: {
+ const ComplexType *ct = cast<ComplexType>(ty);
+ mlir::Type elementTy = convertType(ct->getElementType());
----------------
xlauko wrote:
Oh sorry thought this was `cir::ComplexType`, then this should be `const auto *ct = cast<ComplexType>(ty);` not `mlir` cast
https://github.com/llvm/llvm-project/pull/141369
More information about the cfe-commits
mailing list