Skip to content

Commit 095064b

Browse files
Turn tcx.vtable_allocation() into a query.
1 parent 881208f commit 095064b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vtable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub(crate) fn get_vtable<'tcx>(
6868
ty: Ty<'tcx>,
6969
trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>,
7070
) -> Value {
71-
let alloc_id = fx.tcx.vtable_allocation(ty, trait_ref);
71+
let alloc_id = fx.tcx.vtable_allocation((ty, trait_ref));
7272
let data_id =
7373
data_id_for_alloc_id(&mut fx.constants_cx, &mut *fx.module, alloc_id, Mutability::Not);
7474
let local_data_id = fx.module.declare_data_in_func(data_id, &mut fx.bcx.func);

0 commit comments

Comments
 (0)