aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-17 19:23:08 -0400
committerGitHub <noreply@github.com>2022-06-17 19:23:08 -0400
commit33cf6ef621114daad63d14067b6ff374e664d410 (patch)
tree9828aa24009a7f03a446433606c46e14f5667587 /src/value.zig
parentb66247c97af3deaa190d1ca8297166f932b022ff (diff)
parent28986a059075c2dce662c2f4e823b3efd283df87 (diff)
downloadzig-33cf6ef621114daad63d14067b6ff374e664d410.tar.gz
zig-33cf6ef621114daad63d14067b6ff374e664d410.zip
Merge pull request #11881 from Vexu/stage2
Stage2: fixes for bugs found while looking for miscompilations
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig
index 543691bbb0..60c212a84f 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -2186,7 +2186,7 @@ pub const Value = extern union {
// A tuple can be represented with .empty_struct_value,
// the_one_possible_value, .aggregate in which case we could
// end up here and the values are equal if the type has zero fields.
- return ty.structFieldCount() != 0;
+ return ty.isTupleOrAnonStruct() and ty.structFieldCount() != 0;
},
.Float => {
const a_nan = a.isNan();