Tell LLVM about read-only captures
`&Freeze` parameters are not only `readonly` within the function, but any captures of the pointer can also only be used for reads. This can now be encoded using the `captures(address, read_provenance)` attribute.
This commit is contained in:
@@ -251,6 +251,7 @@ pub(crate) enum AttributeKind {
|
||||
Writable = 42,
|
||||
DeadOnUnwind = 43,
|
||||
DeadOnReturn = 44,
|
||||
CapturesReadOnly = 45,
|
||||
}
|
||||
|
||||
/// LLVMIntPredicate
|
||||
|
||||
Reference in New Issue
Block a user