[llvm] [clang-tools-extra] [clang] [Clang] Correct handling of negative and out-of-bounds indices (PR #71877)
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 19 19:35:10 PST 2023
================
@@ -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) {
----------------
bwendling wrote:
This has been rebased with the NFC refactor. PTAL.
https://github.com/llvm/llvm-project/pull/71877
More information about the cfe-commits
mailing list