Support fn pointer type sizes.
This commit is contained in:
parent
2e12b220be
commit
c8781e3c01
1 changed files with 2 additions and 0 deletions
|
|
@ -780,6 +780,8 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
|
|||
}
|
||||
}
|
||||
|
||||
ty::TyFnPtr(..) => Repr::Primitive { size: self.memory.pointer_size },
|
||||
|
||||
ty::TyClosure(_, ref closure_substs) =>
|
||||
self.make_aggregate_repr(iter::once(closure_substs.upvar_tys.iter().cloned())),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue