suspension points inside branching control flow

This commit is contained in:
Andrew Kelley
2019-08-04 18:24:10 -04:00
parent 12924477a5
commit fa30ebfbe5
6 changed files with 161 additions and 83 deletions

View File

@@ -24474,7 +24474,7 @@ static IrInstruction *ir_analyze_instruction_suspend_br(IrAnalyze *ira, IrInstru
ZigFn *fn_entry = exec_fn_entry(ira->new_irb.exec);
ir_assert(fn_entry != nullptr, &instruction->base);
new_bb->split_llvm_fn = reinterpret_cast<LLVMValueRef>(0x1);
new_bb->resume_index = fn_entry->resume_blocks.length + coro_extra_resume_block_count;
fn_entry->resume_blocks.append(new_bb);
if (fn_entry->inferred_async_node == nullptr) {