Skip to content

Commit da59cf0

Browse files
committed
---
yaml --- r: 722 b: refs/heads/master c: a2f4d90 h: refs/heads/master v: v3
1 parent 50ef969 commit da59cf0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: d31eca41d5dd18a079d0b06de3a965cedf1ec4f9
2+
refs/heads/master: a2f4d9089a413842c96e14e66462577bf14e76fb

trunk/src/comp/back/x86.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ fn upcall_glue(int n_args) -> vec[str] {
7575
*/
7676

7777
fn copy_arg(uint i) -> str {
78-
auto off = wstr(7 + (i as int));
79-
auto m = vec("movl " + off + "(%ebp),%edx",
80-
"movl %edx," + off + "(%esp)");
78+
auto src_off = wstr(7 + (i as int));
79+
auto dst_off = wstr(1 + (i as int));
80+
auto m = vec("movl " + src_off + "(%ebp),%edx",
81+
"movl %edx," + dst_off + "(%esp)");
8182
ret _str.connect(m, "\n\t");
8283
}
8384

0 commit comments

Comments
 (0)