[clang] [llvm] [IR] Make dead_on_return attribute optionally sized (PR #171712)
Aiden Grossman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 20 10:06:32 PST 2026
================
@@ -78,8 +78,10 @@ class Argument final : public Value {
/// Return true if this argument has the byval attribute.
LLVM_ABI bool hasByValAttr() const;
- /// Return true if this argument has the dead_on_return attribute.
- LLVM_ABI bool hasDeadOnReturnAttr() const;
+ /// Return the number of bytes marked dead by the dead_on_return attribute.
+ /// If no count was specified (implying all memory reachable through the
+ /// pointer is marked dead on return), std::nullopt is returned.
----------------
boomanaiden154 wrote:
Updated. Left over from an older version of the patch before `DeadOnReturnInfo`.
https://github.com/llvm/llvm-project/pull/171712
More information about the cfe-commits
mailing list