================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits