From 84e0458c99b490d359facf6997db29399559c916 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 3 Feb 2016 11:36:14 +1100 Subject: [PATCH] Use target_endian, not target.arch in cabi_powerpc64 Now target_arch is powerpc64 on both big and little endian, we need to use target_endian when there are differences in the two ABIs. --- src/librustc_trans/trans/cabi_powerpc64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_trans/trans/cabi_powerpc64.rs b/src/librustc_trans/trans/cabi_powerpc64.rs index cba73004279d..f76bb4f9eebc 100644 --- a/src/librustc_trans/trans/cabi_powerpc64.rs +++ b/src/librustc_trans/trans/cabi_powerpc64.rs @@ -158,7 +158,7 @@ fn classify_ret_ty(ccx: &CrateContext, ty: Type) -> ArgType { } // The PowerPC64 big endian ABI doesn't return aggregates in registers - if ccx.sess().target.target.arch == "powerpc64" { + if ccx.sess().target.target.target_endian == "big" { return ArgType::indirect(ty, Some(Attribute::StructRet)) }