[clang] [llvm] [IR] Make dead_on_return attribute optionally sized (PR #171712)
Antonio Frighetto via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 22 12:18:40 PST 2025
================
@@ -451,6 +451,16 @@ uint64_t Attribute::getDereferenceableBytes() const {
return pImpl->getValueAsInt();
}
+std::optional<uint64_t> Attribute::getDeadOnReturnBytes() const {
+ assert(hasAttribute(Attribute::DeadOnReturn) &&
+ "Trying to get dead_on_return bytes from"
+ "from a parameter without such an attribute!");
----------------
antoniofrighetto wrote:
```suggestion
"Trying to get dead_on_return bytes from"
"a parameter without such an attribute!");
```
https://github.com/llvm/llvm-project/pull/171712
More information about the cfe-commits
mailing list