aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-05 17:09:01 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-05 17:09:01 -0400
commite2dc63644ab3d8e5cdaec2d58dc57c587295081f (patch)
tree776b9916ec8911cee97f7992e7255acf6331fc70 /src/ir_print.cpp
parent6ef15fc8d00c06bc767b91515e2c919448948e6f (diff)
downloadzig-e2dc63644ab3d8e5cdaec2d58dc57c587295081f.tar.gz
zig-e2dc63644ab3d8e5cdaec2d58dc57c587295081f.zip
type_has_one_possible_value takes comptime struct fields into account
Before, type_has_one_possible_value would return false for the value `.{1}`. But actually, that type is a tuple with a single comptime field. Such a type, in fact, has one possible value. This plus the corresponding adjustment to get_the_one_possible_value solves #3878.
Diffstat (limited to 'src/ir_print.cpp')
0 files changed, 0 insertions, 0 deletions