diff options
| author | Charles Lew <crlf0710@gmail.com> | 2021-06-20 17:43:25 +0800 |
|---|---|---|
| committer | Charles Lew <crlf0710@gmail.com> | 2021-06-28 19:39:48 +0800 |
| commit | d3ff497bec60687e3e1bdde383bd0b9dc74b5870 (patch) | |
| tree | f12696156730de79bc337241e6a2dc4e9cfad0e3 /compiler/rustc_codegen_cranelift/src/common.rs | |
| parent | 654e3345e535913653a2bad4204c31f9ccedb3c4 (diff) | |
| download | rust-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.rs | 2 |
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>, |
