Skip to content

Commit

Permalink
Add a comment about drop(start_bx)
Browse files Browse the repository at this point in the history
  • Loading branch information
823984418 committed Mar 8, 2023
1 parent de2e16c commit 871b4fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_codegen_ssa/src/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
// Apply debuginfo to the newly allocated locals.
fx.debug_introduce_locals(&mut start_bx);

// The builders will be created separately for each basic block at `codegen_block`.
// So drop the builder of `start_llbb` to avoid having two at the same time.
drop(start_bx);

// Codegen the body of each block using reverse postorder
Expand Down

0 comments on commit 871b4fe

Please sign in to comment.