[clang] [CIR] CountOf VLA with Array element type (PR #169404)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 26 11:34:11 PST 2025
================
@@ -1138,6 +1138,14 @@ CIRGenFunction::getVLASize(const VariableArrayType *type) {
return {numElements, elementType};
}
+CIRGenFunction::VlaSizePair
+CIRGenFunction::getVLAElements1D(const VariableArrayType *vla) {
+ mlir::Value vlaSize = vlaSizeMap[vla->getSizeExpr()];
+ assert(vlaSize && "no size for VLA!");
+ assert(vlaSize->getType() == sizeTy);
----------------
andykaylor wrote:
https://github.com/llvm/llvm-project/pull/169715
https://github.com/llvm/llvm-project/pull/169404
More information about the cfe-commits
mailing list