diff options
| author | Anton Blanchard <anton@samba.org> | 2016-02-03 11:36:14 +1100 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2016-02-09 20:09:34 +0000 |
| commit | 84e0458c99b490d359facf6997db29399559c916 (patch) | |
| tree | f7f6f7c12f2ca674937f2985d2b17e4eea4589af | |
| parent | fc1c1183f32810a5b61ee9ee27a5683f14737994 (diff) | |
| download | rust-84e0458c99b490d359facf6997db29399559c916.tar.gz rust-84e0458c99b490d359facf6997db29399559c916.zip | |
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.
| -rw-r--r-- | src/librustc_trans/trans/cabi_powerpc64.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trans/trans/cabi_powerpc64.rs b/src/librustc_trans/trans/cabi_powerpc64.rs index cba73004279..f76bb4f9eeb 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)) } |
