Skip to content

Commit 86445c8

Browse files
committed
fix codegen gcc
1 parent 60de210 commit 86445c8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_codegen_gcc/src/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ impl<'a, 'gcc, 'tcx> Deref for Builder<'a, 'gcc, 'tcx> {
509509

510510
impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
511511
type Value = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Value;
512+
type Metadata = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Metadata;
512513
type Function = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Function;
513514
type BasicBlock = <CodegenCx<'gcc, 'tcx> as BackendTypes>::BasicBlock;
514515
type Type = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Type;

compiler/rustc_codegen_gcc/src/context.rs

+1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
415415

416416
impl<'gcc, 'tcx> BackendTypes for CodegenCx<'gcc, 'tcx> {
417417
type Value = RValue<'gcc>;
418+
type Metadata = RValue<'gcc>;
418419
type Function = RValue<'gcc>;
419420

420421
type BasicBlock = Block<'gcc>;

0 commit comments

Comments
 (0)