about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-06-14 17:41:45 -0700
committerEric Holk <eholk@mozilla.com>2011-06-15 12:10:15 -0700
commit01ea27b205817ee952f7132b2663701622aa6c69 (patch)
tree26339935bc03aea21b196bfd170774e937bbc278 /src/comp
parent766d54df9378b6e8d13f577af6c1f8a2995635e1 (diff)
downloadrust-01ea27b205817ee952f7132b2663701622aa6c69.tar.gz
rust-01ea27b205817ee952f7132b2663701622aa6c69.zip
Step 1 of moving task startup to always be cdecl.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 24bef67d758..a01650dc1ac 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -5842,7 +5842,8 @@ fn mk_spawn_wrapper(&@block_ctxt cx, &@ast::expr func, &ty::t args_ty) ->
     let str wrap_name =
         mangle_internal_name_by_path_and_seq(cx.fcx.lcx.ccx, cx.fcx.lcx.path,
                                              "spawn_wrapper");
-    auto llfndecl = decl_fastcall_fn(llmod, wrap_name, wrapper_fn_type);
+    auto llfndecl = decl_cdecl_fn(llmod, wrap_name, wrapper_fn_type);
+
     auto fcx = new_fn_ctxt(cx.fcx.lcx, cx.sp, llfndecl);
     auto fbcx = new_top_block_ctxt(fcx);
     // 3u to skip the three implicit args