diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-07-05 16:22:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-05 16:22:40 -0700 |
| commit | b3225a755a78502245bc9c7d7419ebeb67201320 (patch) | |
| tree | 7e1e2d770f57dd563caaebdc66a1edd1690fb515 /src/stage1/errmsg.cpp | |
| parent | 0ff9a4d21c1b65c574659be295446f2dd7591723 (diff) | |
| download | zig-b3225a755a78502245bc9c7d7419ebeb67201320.tar.gz zig-b3225a755a78502245bc9c7d7419ebeb67201320.zip | |
stage1: avoid incorrectly reading ZigValue data
Hashing, equality checking, and expanding lazy values were not
inspecting the is_comptime field of structs, causing incorrect behavior
for tuples. When looking at a comptime value of a struct, if the
is_comptime field is true, the value must be learned from the type
rather than the value.
Diffstat (limited to 'src/stage1/errmsg.cpp')
0 files changed, 0 insertions, 0 deletions
