aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-28 23:15:58 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-28 23:15:58 -0700
commit4763fd1a41bc5f6bb59b5c3c079069b84f19305a (patch)
treea4f38b1e2150b5d2a88c66d2d96c23b9dd39775c /src/codegen/llvm
parent5e2e7675d53c4258a21d014a09f2a6fdae64b433 (diff)
downloadzig-4763fd1a41bc5f6bb59b5c3c079069b84f19305a.tar.gz
zig-4763fd1a41bc5f6bb59b5c3c079069b84f19305a.zip
Sema: clean up peer resolution of errors
* Fix compile error for `zirErrorUnionType`. * Convert zirMergeErrorSets logic to call `Type.errorSetMerge`. It does not need to create a Decl as the TODO comment hinted. * Extract out a function called `resolveInferredErrorSetTy`. * Rework `resolvePeerTypes` with respect to error unions and error sets. This is a less complex implementation that passes all the same tests and uses many fewer lines of code by taking advantage of the function `coerceInMemoryAllowedErrorSets`. - Always merge error sets in the order that makes sense, even when that means `@typeInfo` incompatibility with stage1. * `Type.errorSetMerge` no longer overallocates. * Don't skip passing tests.
Diffstat (limited to 'src/codegen/llvm')
0 files changed, 0 insertions, 0 deletions