diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-07-09 14:41:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-18 19:02:05 -0700 |
| commit | 4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f (patch) | |
| tree | 682bb4663ac7fc4337676bf005cfd6d75bd93138 /src/Sema.zig | |
| parent | f3dc53f6b53e8493b341f82cb06a56e33e80e6b7 (diff) | |
| download | zig-4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f.tar.gz zig-4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f.zip | |
InternPool: avoid false negatives for functions with inferred error sets
There is one case where function types may be inequal but we still want
to find the same function body instance in InternPool.
In the case of the functions having an inferred error set, the key used
to find an existing function body will necessarily have a unique
inferred error set type, because it refers to the function body
InternPool Index. To make this case work we omit the inferred error set
from the equality and hashing functions.
Diffstat (limited to 'src/Sema.zig')
0 files changed, 0 insertions, 0 deletions
