================ @@ -827,6 +827,165 @@ CodeGenFunction::evaluateOrEmitBuiltinObjectSize(const Expr *E, unsigned Type, return ConstantInt::get(ResType, ObjectSize, /*isSigned=*/true); } +llvm::Value * +CodeGenFunction::emitFlexibleArrayMemberSize(const Expr *E, unsigned Type, + llvm::IntegerType *ResType) { ---------------- nickdesaulniers wrote:
it's hard to tell what changed since this patch: 1. creates `CodeGenFunction::emitFlexibleArrayMemberSize` 2. changes logic within `CodeGenFunction::emitFlexibleArrayMemberSize` Mind pre-committing 1 so that it's easier to see what logic was changed in isolation? https://github.com/llvm/llvm-project/pull/71877 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits