[clang] [CIR] Upstream enum support (PR #136807)
Ankur Ahir via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 17:46:24 PDT 2025
================
@@ -399,6 +399,14 @@ mlir::Type CIRGenTypes::convertType(QualType type) {
break;
}
+ case Type::Enum: {
+ const EnumDecl *ED = cast<EnumType>(ty)->getDecl();
+ if (ED->isCompleteDefinition() || ED->isFixed())
+ return convertType(ED->getIntegerType());
----------------
Ankur-0429 wrote:
There is a function [UpdateCompletedType](https://github.com/llvm/clangir/blob/a9eac21b2f5bcfa4169bde20faca769f70a06f28/clang/lib/CIR/CodeGen/CIRGenTypes.cpp#L830) that currently does not exist in this repo. Is this something that should be added? Wasn't too sure how much the fork diverged from the currently llvm repo.
https://github.com/llvm/llvm-project/pull/136807
More information about the cfe-commits
mailing list