diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-04-05 02:48:00 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-04-06 12:53:09 -0700 |
| commit | 4e8553660405a063d8abd335a600714af121aed9 (patch) | |
| tree | c4522378f427ddb62c6eb4c638d55c10312d4beb /src/codegen/c.zig | |
| parent | 9ab6d9106787e76ecba817b40c804be38aa6cfe7 (diff) | |
| download | zig-4e8553660405a063d8abd335a600714af121aed9.tar.gz zig-4e8553660405a063d8abd335a600714af121aed9.zip | |
Builder: fix encoding big integers in bitcode
Closes #19543
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 883f3f7c77..ed5ab74405 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -4120,7 +4120,7 @@ fn airEquality( const operand_ty = f.typeOf(bin_op.lhs); const operand_bits = operand_ty.bitSize(zcu); - if (operand_ty.isInt(zcu) and operand_bits > 64) + if (operand_ty.isAbiInt(zcu) and operand_bits > 64) return airCmpBuiltinCall( f, inst, @@ -4474,9 +4474,9 @@ fn airDbgInlineBlock(f: *Function, inst: Air.Inst.Index) !CValue { const extra = f.air.extraData(Air.DbgInlineBlock, ty_pl.payload); const owner_decl = zcu.funcOwnerDeclPtr(extra.data.func); const writer = f.object.writer(); - try writer.writeAll("/* "); + try writer.writeAll("/* inline:"); try owner_decl.renderFullyQualifiedName(zcu, writer); - try writer.writeAll(" */ "); + try writer.writeAll(" */\n"); return lowerBlock(f, inst, @ptrCast(f.air.extra[extra.end..][0..extra.data.body_len])); } |
