diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-24 05:39:29 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-24 05:39:29 +0200 |
commit | da314b492202a347df9ec10649b33d0d7d2fe7e3 (patch) | |
tree | 6351f2bf10d43e85bbd29e4e18311d294bc3a9a2 /src | |
parent | 28270d80af2fa090694359f84ec2b9cadee77995 (diff) |
Assert that integer types don’t exceed 128 bits
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c index f31bcf4..fe8e63b 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -333,7 +333,7 @@ type2llvm(struct cgctx ctx, type_t t) } if (t.size == 0) return LLVMIntPtrTypeInContext(ctx.ctx, ctx.td); - assert((unsigned)t.size * 8 <= UINT8_MAX); + assert((unsigned)t.size * 8 <= 128); return LLVMIntTypeInContext(ctx.ctx, t.size * 8); default: __builtin_unreachable(); |