stage2: various fixes to get one test passing

* resolve error sets before merging them
* implement tupleFieldPtr
* make ret_ptr behave like alloc with zero sized types in llvm backend
This commit is contained in:
Veikka Tuominen
2022-02-26 22:57:05 +02:00
committed by Andrew Kelley
parent 058e482247
commit bf3c88b68d
5 changed files with 88 additions and 13 deletions

View File

@@ -1435,7 +1435,7 @@ pub const Fn = struct {
/// All currently known errors that this error set contains. This includes direct additions
/// via `return error.Foo;`, and possibly also errors that are returned from any dependent functions.
/// When the inferred error set is fully resolved, this map contains all the errors that the function might return.
errors: std.StringHashMapUnmanaged(void) = .{},
errors: ErrorSet.NameMap = .{},
/// Other inferred error sets which this inferred error set should include.
inferred_error_sets: std.AutoHashMapUnmanaged(*InferredErrorSet, void) = .{},