about summary refs log tree commit diff
path: root/src/rt/rust_shape.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-10-20 11:56:45 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-10-20 14:22:17 +0200
commit8124846b2c945f661a6bb85e66e22ca987891dc4 (patch)
treea299fea71192b2716e063a7098e5c6b6850967bb /src/rt/rust_shape.cpp
parent457683c7feef42f07f3044ccfdc8ee7816176ab0 (diff)
downloadrust-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_shape.cpp')
-rw-r--r--src/rt/rust_shape.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp
index 8fa82b75481..e52cd77cd40 100644
--- a/src/rt/rust_shape.cpp
+++ b/src/rt/rust_shape.cpp
@@ -530,9 +530,10 @@ log::walk_res(const rust_fn *dtor, unsigned n_params,
 } // end namespace shape
 
 extern "C" void
-upcall_cmp_type(int8_t *result, rust_task *task, const type_desc *tydesc,
+upcall_cmp_type(int8_t *result, const type_desc *tydesc,
                 const type_desc **subtydescs, uint8_t *data_0,
                 uint8_t *data_1, uint8_t cmp_type) {
+    rust_task *task = rust_scheduler::get_task();
     shape::arena arena;
 
     // FIXME: This may well be broken when comparing two closures or objects