[clang] [Clang] Correct handling of negative and out-of-bounds indices (PR #71877)
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 18 11:04:56 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:
I'll create a NFC patch that just does the refactoring and rebase this onto it.
https://github.com/llvm/llvm-project/pull/71877
More information about the cfe-commits
mailing list