diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-11-10 17:55:16 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-10 17:21:49 -0500 |
| commit | 4d4ab1e69a40fb11d19e93b42a02016f9d009aef (patch) | |
| tree | ca4312aad89b1a198eab033f972ee2882d8ce04b /src/codegen | |
| parent | 06a3a69e6f38798b1768976520b8db40c9a210bf (diff) | |
| download | zig-4d4ab1e69a40fb11d19e93b42a02016f9d009aef.tar.gz zig-4d4ab1e69a40fb11d19e93b42a02016f9d009aef.zip | |
stage1: Fix comparison of unions containing zero-sized types
The code tried to be too smart and skipped the equality (returning true)
if the payload type was zero-sized.
This optimization is completely wrong when the union payload is a
metatype!
Fixes #7047
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
