Ignore already sealed blocks in seal_all_blocks

This commit is contained in:
teapotd
2020-04-02 16:23:08 +02:00
committed by Andrew Brown
parent 654e953fbf
commit 11497a5207
2 changed files with 5 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ impl<'a> FunctionBuilder<'a> {
self.handle_ssa_side_effects(side_effects);
}
/// Effectively calls seal_block on all blocks in the function.
/// Effectively calls seal_block on all unsealed blocks in the function.
///
/// It's more efficient to seal `Block`s as soon as possible, during
/// translation, but for frontends where this is impractical to do, this