aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-01 16:41:30 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-01 16:41:30 -0400
commit1dd0c3d49f929fc280d5bb4bbeed6538b50b2535 (patch)
treed1a6bfbec914f33009c1c300c1f9a8b2efff1593 /src/analyze.cpp
parente7ae4e4645a46a216c5913e2f9120cb02c10008c (diff)
downloadzig-1dd0c3d49f929fc280d5bb4bbeed6538b50b2535.tar.gz
zig-1dd0c3d49f929fc280d5bb4bbeed6538b50b2535.zip
fix calling an inferred async function
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp7
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);