Codegen: Use GPR regclass for reference types on x86

This commit is contained in:
Ryan Hunt
2019-11-27 14:16:36 -06:00
parent 3b1dda8e92
commit a15bb9cfcb

View File

@@ -333,7 +333,7 @@ pub fn legalize_signature(
/// Get register class for a type appearing in a legalized signature.
pub fn regclass_for_abi_type(ty: ir::Type) -> RegClass {
if ty.is_int() || ty.is_bool() {
if ty.is_int() || ty.is_bool() || ty.is_ref() {
GPR
} else {
FPR