diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2021-10-07 11:29:01 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.de> | 2021-10-07 20:03:00 +0200 |
| commit | b7cc99142ad0cfe47e2fe9f7a82eaf5b672c0573 (patch) | |
| tree | 9a855bc4022a32a3498651a8fbc138dd595b40ea /compiler/rustc_codegen_cranelift/src/vtable.rs | |
| parent | a1e2c0f0ad9e787b5ff2844112fc2324511adf34 (diff) | |
| download | rust-b7cc99142ad0cfe47e2fe9f7a82eaf5b672c0573.tar.gz rust-b7cc99142ad0cfe47e2fe9f7a82eaf5b672c0573.zip | |
Turn tcx.vtable_allocation() into a query.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/vtable.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/vtable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/vtable.rs b/compiler/rustc_codegen_cranelift/src/vtable.rs index f97d416b66f..36b3725ef42 100644 --- a/compiler/rustc_codegen_cranelift/src/vtable.rs +++ b/compiler/rustc_codegen_cranelift/src/vtable.rs @@ -68,7 +68,7 @@ pub(crate) fn get_vtable<'tcx>( ty: Ty<'tcx>, trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>, ) -> Value { - let alloc_id = fx.tcx.vtable_allocation(ty, trait_ref); + let alloc_id = fx.tcx.vtable_allocation((ty, trait_ref)); let data_id = data_id_for_alloc_id(&mut fx.constants_cx, &mut *fx.module, alloc_id, Mutability::Not); let local_data_id = fx.module.declare_data_in_func(data_id, &mut fx.bcx.func); |
