summaryrefslogtreecommitdiff
path: root/libstd/util+posixy-x64.s
diff options
context:
space:
mode:
Diffstat (limited to 'libstd/util+posixy-x64.s')
-rw-r--r--libstd/util+posixy-x64.s3
1 files changed, 1 insertions, 2 deletions
diff --git a/libstd/util+posixy-x64.s b/libstd/util+posixy-x64.s
index b6a9b85..d44ab79 100644
--- a/libstd/util+posixy-x64.s
+++ b/libstd/util+posixy-x64.s
@@ -56,10 +56,9 @@ sys$alloca:
pushq %rbx
movq 8(%rbp),%r15 /* ret addr */
- movq 16(%rbp),%rbx /* len */
/* get stack space */
- subq %rbx,%rsp /* get stack space */
+ subq %rdi,%rsp /* get stack space */
movq %rsp,%rax /* top of stack (return value) */
subq $31,%rsp /* "unpop" the args for return */
andq $(~15),%rsp /* align */