Skip to content

Commit 1c40840

Browse files
committed
Fix warning
1 parent fed612c commit 1c40840

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/optimize/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(crate) fn optimize_function<'tcx>(
1919
if tcx.sess.opts.optimize == rustc_session::config::OptLevel::No {
2020
return; // FIXME classify optimizations over opt levels
2121
}
22-
self::stack2reg::optimize_function(ctx, clif_comments);
22+
self::stack2reg::optimize_function(ctx);
2323
crate::pretty_clif::write_clif_file(tcx, "stack2reg", None, instance, &ctx, &*clif_comments);
2424
crate::base::verify_func(tcx, &*clif_comments, &ctx.func);
2525
}

src/optimize/stack2reg.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ impl<'a> OptimizeContext<'a> {
182182
}
183183
}
184184

185-
pub(super) fn optimize_function(
186-
ctx: &mut Context,
187-
clif_comments: &mut crate::pretty_clif::CommentWriter,
188-
) {
185+
pub(super) fn optimize_function(ctx: &mut Context) {
189186
combine_stack_addr_with_load_store(&mut ctx.func);
190187

191188
let mut opt_ctx = OptimizeContext::for_context(ctx);

0 commit comments

Comments
 (0)