]> git.lizzy.rs Git - rust.git/commitdiff
Fix copy-paste bug.
authorVadim Chugunov <vadimcn@gmail.com>
Tue, 11 Aug 2015 17:41:22 +0000 (10:41 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Tue, 11 Aug 2015 17:41:22 +0000 (10:41 -0700)
(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

index 262dcc4705961018d21369027ed396f630ff7ec7..0a39150dbd36a684fcdd358588044a6d841d73d1 100644 (file)
@@ -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))
                 }
             }