Prevent the start_bx
basic block in codegen from having two Builder
s at the same time
This commit is contained in:
parent
01b7a6a9ea
commit
de2e16cf71
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
drop(start_bx);
|
||||
|
||||
// Codegen the body of each block using reverse postorder
|
||||
for (bb, _) in traversal::reverse_postorder(&mir) {
|
||||
fx.codegen_block(bb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue