[clang] [ExtendLifetimes] Add extend lifetimes to emit fake uses from clang (PR #106724)
Stephen Tozer via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 2 04:35:59 PDT 2024
================
@@ -1412,6 +1420,39 @@ void CodeGenFunction::EmitAndRegisterVariableArrayDimensions(
}
}
+/// Return the maximum size of an aggregate for which we generate a fake use
+/// intrinsic when -fextend-lifetimes is in effect.
+static uint64_t maxFakeUseAggregateSize(const ASTContext &C) {
+ return 4 * C.getTypeSize(C.UnsignedIntTy);
----------------
SLTozer wrote:
Good call - the release note also ought to be part of this patch imo.
https://github.com/llvm/llvm-project/pull/106724
More information about the cfe-commits
mailing list