aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-01 17:29:18 -0400
committerGitHub <noreply@github.com>2022-07-01 17:29:18 -0400
commit7e2eb1326ba267012d47aa2eda539f01963d4d6b (patch)
tree61c165bea75319123ffec3412fb722bc1700147f /src/type.zig
parentb79884eaf003ad32e800213c20da5c6b8935af34 (diff)
parent2029601cb2ad4a6e9c8b260eec68de881d46735b (diff)
downloadzig-7e2eb1326ba267012d47aa2eda539f01963d4d6b.tar.gz
zig-7e2eb1326ba267012d47aa2eda539f01963d4d6b.zip
Merge pull request #11973 from Vexu/stage2-compile-errors
more stage2 compile error fixes
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index 0ca7ba83c5..50302dca6c 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -189,7 +189,7 @@ pub const Type = extern union {
.Frame,
=> false,
- .Pointer => is_equality_cmp or ty.isCPtr(),
+ .Pointer => !ty.isSlice() and (is_equality_cmp or ty.isCPtr()),
.Optional => {
if (!is_equality_cmp) return false;
var buf: Payload.ElemType = undefined;