1
Fork 0

pointee_info_at: fix logic for recursing into enums

This commit is contained in:
Ralf Jung 2024-11-07 21:44:28 +01:00
parent 3d1dba830a
commit 35a913b968
4 changed files with 61 additions and 20 deletions

View file

@ -143,7 +143,8 @@ pub struct ArgAttributes {
pub regular: ArgAttribute,
pub arg_ext: ArgExtension,
/// The minimum size of the pointee, guaranteed to be valid for the duration of the whole call
/// (corresponding to LLVM's dereferenceable and dereferenceable_or_null attributes).
/// (corresponding to LLVM's dereferenceable_or_null attributes, i.e., it is okay for this to be
/// set on a null pointer, but all non-null pointers must be dereferenceable).
pub pointee_size: Size,
pub pointee_align: Option<Align>,
}