aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 84bb3a211b..38a105c172 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -433,7 +433,6 @@ pub const DeclGen = struct {
if (is_signed) try writer.writeAll("(int128_t)");
if (is_neg) try writer.writeByte('-');
- assert(high > 0);
try writer.print("(((uint128_t)0x{x}u<<64)", .{high});
if (low > 0)
@@ -572,6 +571,11 @@ pub const DeclGen = struct {
64 => return writer.writeAll("(void *)0xaaaaaaaaaaaaaaaa"),
else => unreachable,
},
+ .Struct => {
+ try writer.writeByte('(');
+ try dg.renderTypecast(writer, ty);
+ return writer.writeAll("){0xaa}");
+ },
else => {
// This should lower to 0xaa bytes in safe modes, and for unsafe modes should
// lower to leaving variables uninitialized (that might need to be implemented