aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-14 11:01:38 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-14 11:01:38 -0400
commit2ba29a1907264d6466f187cd89552a63160d3922 (patch)
tree05c4aa2c024529062a86c282ff32338c96230ae0 /src/codegen.cpp
parentfdaca1b5f3b7b72ed3a661bc52b6463838f366c4 (diff)
downloadzig-2ba29a1907264d6466f187cd89552a63160d3922.tar.gz
zig-2ba29a1907264d6466f187cd89552a63160d3922.zip
fix peer result location with error code and payload
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a035c6b332..def2f6f8eb 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -4901,6 +4901,7 @@ static LLVMValueRef ir_render_unwrap_err_code(CodeGen *g, IrExecutable *executab
if (!type_has_bits(payload_type)) {
return err_union_ptr;
} else {
+ // TODO assign undef to the payload
LLVMValueRef err_union_handle = get_handle_value(g, err_union_ptr, err_union_type, ptr_type);
return LLVMBuildStructGEP(g->builder, err_union_handle, err_union_err_index, "");
}