diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-28 16:47:13 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-28 16:47:13 -0500 |
| commit | ad2a29ccf25af189fc180cba6843c20b9dd029d1 (patch) | |
| tree | 63b15e027ec02baa4d119e9aca20756c339e193c /src/codegen.cpp | |
| parent | 026aebf2ea567c15eebf9ddb9180f7d0e2ec7a9d (diff) | |
| download | zig-ad2a29ccf25af189fc180cba6843c20b9dd029d1.tar.gz zig-ad2a29ccf25af189fc180cba6843c20b9dd029d1.zip | |
break the data dependencies that llvm coro transforms cant handle
my simple coro test program builds now
see #727
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index ec047ad9ec..a5ae9996b5 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -3294,6 +3294,7 @@ static LLVMValueRef ir_render_cancel(CodeGen *g, IrExecutable *executable, IrIns static LLVMValueRef ir_render_get_implicit_allocator(CodeGen *g, IrExecutable *executable, IrInstructionGetImplicitAllocator *instruction) { + assert(instruction->id == ImplicitAllocatorIdArg); size_t allocator_arg_index = get_async_allocator_arg_index(g, &g->cur_fn->type_entry->data.fn.fn_type_id); return LLVMGetParam(g->cur_fn_val, allocator_arg_index); } |
