Skip to content

Commit

Permalink
Fix copy-paste bug.
Browse files Browse the repository at this point in the history
(that didn't seem to affect anything as the Rust type of the args wasn't getting used for code generation)
  • Loading branch information
vadimcn committed Aug 11, 2015
1 parent 8b37055 commit cb5cd54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustc_trans/trans/cabi_x86_win64.rs
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit cb5cd54

Please sign in to comment.