aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/util.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-05 13:05:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-05 13:05:03 -0700
commit9b0868776646934bdec84888dabebbb2b8d9924e (patch)
tree3639f84c9895f4a16687296ced79ebde232bd9b5 /src/stage1/util.cpp
parentb7da1b2d45bc42a56eea3a143e4237a0712c4769 (diff)
downloadzig-9b0868776646934bdec84888dabebbb2b8d9924e.tar.gz
zig-9b0868776646934bdec84888dabebbb2b8d9924e.zip
stage1: recursively resolve lazy values before hashing
When putting ZigValues into a hash map. The hash of a lazy value and a fully resolved value must equal, and so we must resolve the lazy values prior. The hash function asserts that none of the values are lazy.
Diffstat (limited to 'src/stage1/util.cpp')
0 files changed, 0 insertions, 0 deletions