diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-01 16:41:30 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-01 16:41:30 -0400 |
| commit | 1dd0c3d49f929fc280d5bb4bbeed6538b50b2535 (patch) | |
| tree | d1a6bfbec914f33009c1c300c1f9a8b2efff1593 /src/analyze.cpp | |
| parent | e7ae4e4645a46a216c5913e2f9120cb02c10008c (diff) | |
| download | zig-1dd0c3d49f929fc280d5bb4bbeed6538b50b2535.tar.gz zig-1dd0c3d49f929fc280d5bb4bbeed6538b50b2535.zip | |
fix calling an inferred async function
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 5e22358423..99caf9688b 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -5185,13 +5185,6 @@ static Error resolve_coro_frame(CodeGen *g, ZigType *frame_type) { if (!fn_is_async(callee)) continue; - IrBasicBlock *new_resume_block = allocate<IrBasicBlock>(1); - new_resume_block->name_hint = "CallResume"; - new_resume_block->split_llvm_fn = reinterpret_cast<LLVMValueRef>(0x1); - fn->resume_blocks.append(new_resume_block); - call->resume_block = new_resume_block; - fn->analyzed_executable.basic_block_list.append(new_resume_block); - ZigType *callee_frame_type = get_coro_frame_type(g, callee); IrInstructionAllocaGen *alloca_gen = allocate<IrInstructionAllocaGen>(1); |
