Skip to content

Commit 17d7277

Browse files
committed
Implement reg_backend_type for gcc
1 parent 8348179 commit 17d7277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_codegen_gcc/src/type_of.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ impl<'gcc, 'tcx> LayoutTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
364364
fn_abi.ptr_to_gcc_type(self)
365365
}
366366

367-
fn reg_backend_type(&self, _ty: &Reg) -> Type<'gcc> {
368-
unimplemented!();
367+
fn reg_backend_type(&self, ty: &Reg) -> Type<'gcc> {
368+
ty.gcc_type(self)
369369
}
370370

371371
fn fn_decl_backend_type(&self, fn_abi: &FnAbi<'tcx, Ty<'tcx>>) -> Type<'gcc> {

0 commit comments

Comments
 (0)