Skip to content

Commit 5617462

Browse files
committed
Remove unused variable.
1 parent a3ff02f commit 5617462

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/rt/rust_task.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ rust_task::start_rustc(uintptr_t exit_task_glue,
290290
*spp-- = (uintptr_t) 0x0; // output
291291
*spp-- = (uintptr_t) 0x0; // retpc
292292

293-
uintptr_t exit_task_frame_base = 0;
294-
295293
I(dom, args);
296294
make_aligned_room_for_bytes(spp, callsz - 3 * sizeof(uintptr_t));
297295

@@ -325,11 +323,7 @@ rust_task::start_rustc(uintptr_t exit_task_glue,
325323
// The context the activate_glue needs to switch stack.
326324
*spp-- = (uintptr_t) spawnee_fn; // instruction to start at
327325
for (size_t j = 0; j < n_callee_saves; ++j) {
328-
// callee-saves to carry in when we activate
329-
if (j == callee_save_fp)
330-
*spp-- = exit_task_frame_base;
331-
else
332-
*spp-- = (uintptr_t)NULL;
326+
*spp-- = (uintptr_t)NULL;
333327
}
334328

335329
// Back up one, we overshot where sp should be.

0 commit comments

Comments
 (0)