We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77afd06 commit a01648cCopy full SHA for a01648c
toolchain/sem_ir/formatter.cpp
@@ -51,12 +51,10 @@ Formatter::Formatter(const File* sem_ir,
51
}
52
53
// Create empty placeholder chunks for instructions that we output lazily.
54
- for (auto lazy_insts :
55
- {sem_ir_->constants().array_ref(),
56
- sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs)}) {
57
- for (auto inst_id : lazy_insts) {
58
- tentative_inst_chunks_[inst_id.index] = AddChunkNoFlush(false);
59
- }
+ for (auto inst_id : llvm::concat<const InstId>(
+ sem_ir_->constants().array_ref(),
+ sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs))) {
+ tentative_inst_chunks_[inst_id.index] = AddChunkNoFlush(false);
60
61
62
// Create a real chunk for the start of the output.
0 commit comments