aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-03 13:56:01 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:40:03 -0700
commitaa1bb5517d57ae7540ce2c7a4315b2f242d1470c (patch)
tree66d47066f1b2441d967979483fc00703f5abe9de /src/codegen/c.zig
parente77dede87e8cff2679485aecf0d3af146595db3a (diff)
downloadzig-aa1bb5517d57ae7540ce2c7a4315b2f242d1470c.tar.gz
zig-aa1bb5517d57ae7540ce2c7a4315b2f242d1470c.zip
InternPool: implement isSinglePointer
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index a87f37b1c9..f4daa56a6d 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -3873,7 +3873,7 @@ fn airCmpOp(
try reap(f, inst, &.{ data.lhs, data.rhs });
const rhs_ty = f.typeOf(data.rhs);
- const need_cast = lhs_ty.isSinglePointer() or rhs_ty.isSinglePointer();
+ const need_cast = lhs_ty.isSinglePointer(mod) or rhs_ty.isSinglePointer(mod);
const writer = f.object.writer();
const local = try f.allocLocal(inst, inst_ty);
const v = try Vectorize.start(f, inst, writer, lhs_ty);