aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-10 17:55:16 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-10 17:21:49 -0500
commit4d4ab1e69a40fb11d19e93b42a02016f9d009aef (patch)
treeca4312aad89b1a198eab033f972ee2882d8ce04b /src/stage1/codegen.cpp
parent06a3a69e6f38798b1768976520b8db40c9a210bf (diff)
downloadzig-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/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions