aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorBill Wendling <5993918+bwendling@users.noreply.github.com>2023-11-19 19:25:10 -0800
committerGitHub <noreply@github.com>2023-11-19 19:25:10 -0800
commita76adfb992c6f5a9b05fbcc2de5889d2531607db (patch)
treeeaf5dc5f0964b901e4d06388f1f6550103496ab0 /clang/lib/CodeGen/CodeGenFunction.h
parenteb7698254ab668e53133062fbc53b9635de95c4d (diff)
downloadllvm-a76adfb992c6f5a9b05fbcc2de5889d2531607db.zip
llvm-a76adfb992c6f5a9b05fbcc2de5889d2531607db.tar.gz
llvm-a76adfb992c6f5a9b05fbcc2de5889d2531607db.tar.bz2
[NFC][Clang] Refactor code to calculate flexible array member size (#72790)
The code that calculates the flexible array member size is big enough to warrant its own method.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index b4c634d..618e7880 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -4830,6 +4830,9 @@ private:
llvm::Value *EmittedE,
bool IsDynamic);
+ llvm::Value *emitFlexibleArrayMemberSize(const Expr *E, unsigned Type,
+ llvm::IntegerType *ResType);
+
void emitZeroOrPatternForAutoVarInit(QualType type, const VarDecl &D,
Address Loc);