We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ef969 commit da59cf0Copy full SHA for da59cf0
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: d31eca41d5dd18a079d0b06de3a965cedf1ec4f9
+refs/heads/master: a2f4d9089a413842c96e14e66462577bf14e76fb
trunk/src/comp/back/x86.rs
@@ -75,9 +75,10 @@ fn upcall_glue(int n_args) -> vec[str] {
75
*/
76
77
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)");
+ auto src_off = wstr(7 + (i as int));
+ auto dst_off = wstr(1 + (i as int));
+ auto m = vec("movl " + src_off + "(%ebp),%edx",
81
+ "movl %edx," + dst_off + "(%esp)");
82
ret _str.connect(m, "\n\t");
83
}
84
0 commit comments