Don't call seal_all_blocks and finalize twice

This commit is contained in:
bjorn3 2018-09-08 14:17:42 +02:00
parent feee8b2445
commit 9ede386054

View file

@ -101,8 +101,6 @@ fn trans_fn<'a, 'tcx: 'a>(
// Step 6. Codegen function
crate::abi::codegen_fn_prelude(&mut fx, start_ebb);
codegen_fn_content(&mut fx);
fx.bcx.seal_all_blocks();
fx.bcx.finalize();
// Step 7. Write function to file for debugging
let mut writer = crate::pretty_clif::CommentWriter(fx.comments);