[clang] [CIR] Add undef handling to enable global lambdas (PR #169721)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 26 14:02:22 PST 2025
================
@@ -330,6 +330,12 @@ static LogicalResult checkConstantTypes(mlir::Operation *op, mlir::Type opType,
"zero expects struct, array, vector, or complex type");
}
+ if (isa<cir::UndefAttr>(attrType)) {
+ if (!::mlir::isa<cir::VoidType>(opType))
----------------
xlauko wrote:
or add `mlir::` in both cases here?
https://github.com/llvm/llvm-project/pull/169721
More information about the cfe-commits
mailing list