about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/common.rs
diff options
context:
space:
mode:
authorCharles Lew <crlf0710@gmail.com>2021-06-20 17:43:25 +0800
committerCharles Lew <crlf0710@gmail.com>2021-06-28 19:39:48 +0800
commitd3ff497bec60687e3e1bdde383bd0b9dc74b5870 (patch)
treef12696156730de79bc337241e6a2dc4e9cfad0e3 /compiler/rustc_codegen_cranelift/src/common.rs
parent654e3345e535913653a2bad4204c31f9ccedb3c4 (diff)
downloadrust-d3ff497bec60687e3e1bdde383bd0b9dc74b5870.tar.gz
rust-d3ff497bec60687e3e1bdde383bd0b9dc74b5870.zip
Update other codegens to use tcx managed vtable allocations.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/common.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/common.rs b/compiler/rustc_codegen_cranelift/src/common.rs
index 488ff6e1349..a8a0bb52a24 100644
--- a/compiler/rustc_codegen_cranelift/src/common.rs
+++ b/compiler/rustc_codegen_cranelift/src/common.rs
@@ -233,7 +233,7 @@ pub(crate) struct FunctionCx<'m, 'clif, 'tcx: 'm> {
     pub(crate) module: &'m mut dyn Module,
     pub(crate) tcx: TyCtxt<'tcx>,
     pub(crate) pointer_type: Type, // Cached from module
-    pub(crate) vtables: FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), DataId>,
+    pub(crate) vtables: FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), Pointer>,
     pub(crate) constants_cx: ConstantCx,
 
     pub(crate) instance: Instance<'tcx>,