diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-27 10:30:38 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-27 10:30:38 +0100 |
| commit | 52cf01c81579fa1add25e935d26de8cd3e9ea1d7 (patch) | |
| tree | cf1a6b47c9f7ea51d544db738c33eea673a828fc /compiler/rustc_codegen_cranelift/src/vtable.rs | |
| parent | 0f42d47bd5352028fe297f5e759b7e3763d55cbb (diff) | |
| parent | dbee13661efa269cb4cd57bb4c6b99a19732b484 (diff) | |
| download | rust-52cf01c81579fa1add25e935d26de8cd3e9ea1d7.tar.gz rust-52cf01c81579fa1add25e935d26de8cd3e9ea1d7.zip | |
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/vtable.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/vtable.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/vtable.rs b/compiler/rustc_codegen_cranelift/src/vtable.rs index 238abc0d8bd..8f15586a9dc 100644 --- a/compiler/rustc_codegen_cranelift/src/vtable.rs +++ b/compiler/rustc_codegen_cranelift/src/vtable.rs @@ -158,7 +158,8 @@ fn build_vtable<'tcx>( ) .unwrap(); - fx.cx.module.define_data(data_id, &data_ctx).unwrap(); + // FIXME don't duplicate definitions in lazy jit mode + let _ = fx.cx.module.define_data(data_id, &data_ctx); data_id } |
