Apply noundef attribute to &T, &mut T, Box<T>, bool
This doesn't handle `char` because it's a bit awkward to distinguish it from u32 at this point in codegen. Note that for some types (like `&Struct` and `&mut Struct`), we already apply `dereferenceable`, which implies `noundef`, so the IR does not change.
This commit is contained in:
parent
71226d717a
commit
8cb0b6ca5b
10 changed files with 56 additions and 22 deletions
|
@ -82,6 +82,7 @@ enum LLVMRustAttribute {
|
|||
StackProtectReq = 30,
|
||||
StackProtectStrong = 31,
|
||||
StackProtect = 32,
|
||||
NoUndef = 33,
|
||||
};
|
||||
|
||||
typedef struct OpaqueRustString *RustStringRef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue