aboutsummaryrefslogtreecommitdiff
path: root/std/debug/index.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-02-05 01:49:14 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-02-05 01:49:14 -0500
commit893f1088dfe40b0141ac6988a1ae6b165f7cc643 (patch)
treef57fcc6d52217cbaff776d48f405d6d1ad47044e /std/debug/index.zig
parent15075d2c3d7e34fe6c75d7072cfa7f4138bf0910 (diff)
downloadzig-893f1088dfe40b0141ac6988a1ae6b165f7cc643.tar.gz
zig-893f1088dfe40b0141ac6988a1ae6b165f7cc643.zip
error sets - peer resolution for error unions
Diffstat (limited to 'std/debug/index.zig')
-rw-r--r--std/debug/index.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig
index 50ab1a2216..326610bebb 100644
--- a/std/debug/index.zig
+++ b/std/debug/index.zig
@@ -594,7 +594,11 @@ fn parseFormValueRef(allocator: &mem.Allocator, in_stream: &io.InStream, comptim
return parseFormValueRefLen(allocator, in_stream, block_len);
}
-fn parseFormValue(allocator: &mem.Allocator, in_stream: &io.InStream, form_id: u64, is_64: bool) !FormValue {
+const ParseFormValueError = error {};
+
+fn parseFormValue(allocator: &mem.Allocator, in_stream: &io.InStream, form_id: u64, is_64: bool)
+ ParseFormValueError!FormValue
+{
return switch (form_id) {
DW.FORM_addr => FormValue { .Address = try parseFormValueTargetAddrSize(in_stream) },
DW.FORM_block1 => parseFormValueBlock(allocator, in_stream, 1),