From cb5cd5497c23061fdea957819539503e32bff48a Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Tue, 11 Aug 2015 10:41:22 -0700 Subject: [PATCH] Fix copy-paste bug. (that didn't seem to affect anything as the Rust type of the args wasn't getting used for code generation) --- src/librustc_trans/trans/cabi_x86_win64.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc_trans/trans/cabi_x86_win64.rs b/src/librustc_trans/trans/cabi_x86_win64.rs index 262dcc47059..0a39150dbd3 100644 --- a/src/librustc_trans/trans/cabi_x86_win64.rs +++ b/src/librustc_trans/trans/cabi_x86_win64.rs @@ -42,10 +42,10 @@ pub fn compute_abi_info(ccx: &CrateContext, let ty = match t.kind() { Struct => { match llsize_of_alloc(ccx, t) { - 1 => ArgType::direct(rty, Some(Type::i8(ccx)), None, None), - 2 => ArgType::direct(rty, Some(Type::i16(ccx)), None, None), - 4 => ArgType::direct(rty, Some(Type::i32(ccx)), None, None), - 8 => ArgType::direct(rty, Some(Type::i64(ccx)), None, None), + 1 => ArgType::direct(t, Some(Type::i8(ccx)), None, None), + 2 => ArgType::direct(t, Some(Type::i16(ccx)), None, None), + 4 => ArgType::direct(t, Some(Type::i32(ccx)), None, None), + 8 => ArgType::direct(t, Some(Type::i64(ccx)), None, None), _ => ArgType::indirect(t, Some(Attribute::ByVal)) } }