- // FIXME: this catches `InterpError`, which we should not usually do.
- // We might need a proper fallible API from `memory.rs` to avoid this though.
- match this.get_alloc_extra(alloc_id) {
- Ok(alloc_extra) => {
+ let (_size, _align, kind) = this.get_alloc_info(alloc_id);
+ match kind {
+ AllocKind::LiveData => {
+ // This should have alloc_extra data.
+ let alloc_extra = this.get_alloc_extra(alloc_id).unwrap();