add cast kind of from_exposed_addr (int-to-ptr casts)
This commit is contained in:
parent
5e6bb83268
commit
fafccdced3
10 changed files with 93 additions and 39 deletions
|
@ -196,6 +196,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
(Some(CastTy::Ptr(_) | CastTy::FnPtr), Some(CastTy::Int(_))) => {
|
||||
CastKind::PointerExposeAddress
|
||||
}
|
||||
(Some(CastTy::Int(_)), Some(CastTy::Ptr(_))) => {
|
||||
CastKind::PointerFromExposedAddress
|
||||
}
|
||||
(_, _) => CastKind::Misc,
|
||||
};
|
||||
let source = unpack!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue