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
|
@ -269,7 +269,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
mir::CastKind::Pointer(
|
||||
PointerCast::MutToConstPointer | PointerCast::ArrayToPointer,
|
||||
)
|
||||
| mir::CastKind::Misc => {
|
||||
| mir::CastKind::Misc
|
||||
| mir::CastKind::PointerFromExposedAddress => {
|
||||
assert!(bx.cx().is_backend_immediate(cast));
|
||||
let ll_t_out = bx.cx().immediate_backend_type(cast);
|
||||
if operand.layout.abi.is_uninhabited() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue