Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c39d825

Browse files
committedAug 12, 2024··
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

Lines changed: 2 additions & 2 deletions
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)
Please sign in to comment.