Skip to content

Commit c39d825

Browse files
committed
Implement reg_backend_type for gcc
1 parent 448885c commit c39d825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_gcc/src/type_of.rs

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

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

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

0 commit comments

Comments
 (0)