diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 11:56:45 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 14:22:17 +0200 |
| commit | 8124846b2c945f661a6bb85e66e22ca987891dc4 (patch) | |
| tree | a299fea71192b2716e063a7098e5c6b6850967bb /src/rt/rust_upcall.cpp | |
| parent | 457683c7feef42f07f3044ccfdc8ee7816176ab0 (diff) | |
| download | rust-8124846b2c945f661a6bb85e66e22ca987891dc4.tar.gz rust-8124846b2c945f661a6bb85e66e22ca987891dc4.zip | |
Get rid of taskpointer-passing throughout the compiler
Only intrinsics still take a dummy taskptr. We'll have to do some makefile stunts to snapshot a version without taskptrs-in-intrinsics. Issue #466
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 516de91dd5f..82d82323ae5 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -28,8 +28,7 @@ check_stack(rust_task *task) { // dealing with reference counts static inline void copy_elements(rust_task *task, type_desc *elem_t, - void *pdst, void *psrc, size_t n) -{ + void *pdst, void *psrc, size_t n) { char *dst = (char *)pdst, *src = (char *)psrc; memmove(dst, src, n); @@ -39,7 +38,7 @@ copy_elements(rust_task *task, type_desc *elem_t, size_t elem_size = elem_t->size; const type_desc **tydescs = elem_t->first_param; for (char *p = dst; p < dst+n; p += elem_size) { - take_glue(NULL, task, NULL, tydescs, p); + take_glue(NULL, NULL, tydescs, p); } } } |
