| ... | @@ -5800,9 +5800,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr | ... | @@ -5800,9 +5800,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr |
| 5800 | | 5800 | |
| 5801 | try mod.semaFile(result.file); | 5801 | try mod.semaFile(result.file); |
| 5802 | const file_root_decl_index = result.file.root_decl.unwrap().?; | 5802 | const file_root_decl_index = result.file.root_decl.unwrap().?; |
| 5803 | const file_root_decl = mod.declPtr(file_root_decl_index); | 5803 | return sema.analyzeDeclVal(parent_block, src, file_root_decl_index); |
| 5804 | try mod.declareDeclDependency(sema.owner_decl_index, file_root_decl_index); | | |
| 5805 | return Air.internedToRef(file_root_decl.val.toIntern()); | | |
| 5806 | } | 5804 | } |
| 5807 | | 5805 | |
| 5808 | fn zirSuspendBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 5806 | fn zirSuspendBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| ... | @@ -13036,9 +13034,7 @@ fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -13036,9 +13034,7 @@ fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 13036 | }; | 13034 | }; |
| 13037 | try mod.semaFile(result.file); | 13035 | try mod.semaFile(result.file); |
| 13038 | const file_root_decl_index = result.file.root_decl.unwrap().?; | 13036 | const file_root_decl_index = result.file.root_decl.unwrap().?; |
| 13039 | const file_root_decl = mod.declPtr(file_root_decl_index); | 13037 | return sema.analyzeDeclVal(block, operand_src, file_root_decl_index); |
| 13040 | try mod.declareDeclDependency(sema.owner_decl_index, file_root_decl_index); | | |
| 13041 | return Air.internedToRef(file_root_decl.val.toIntern()); | | |
| 13042 | } | 13038 | } |
| 13043 | | 13039 | |
| 13044 | fn zirEmbedFile(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 13040 | fn zirEmbedFile(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |