Skip to content

Commit de2e16c

Browse files
authored
Prevent the start_bx basic block in codegen from having two Builders at the same time
1 parent 01b7a6a commit de2e16c

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
258258
// Apply debuginfo to the newly allocated locals.
259259
fx.debug_introduce_locals(&mut start_bx);
260260

261+
drop(start_bx);
262+
261263
// Codegen the body of each block using reverse postorder
262264
for (bb, _) in traversal::reverse_postorder(&mir) {
263265
fx.codegen_block(bb);

0 commit comments

Comments
 (0)