================
@@ -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);
----------------
AmrDeveloper wrote:
Thank you for catching it
https://github.com/llvm/llvm-project/pull/169404
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits