diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 16:44:01 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 16:44:01 +0100 |
| commit | 526a42c6caac9bc39b9217e58c297d084c3d694a (patch) | |
| tree | ae6b2cb95cc19725a9ff4254efdae605c08bcc8a /src/check_type.cpp | |
| parent | 8de728e3dc09eff8840ec3842e731f51865daf03 (diff) | |
Remove custom alignment limit
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 8d129eb68..00a4c4ab2 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -215,13 +215,7 @@ bool check_custom_align(CheckerContext *ctx, Ast *node, i64 *align_) { error(node, "#align must be a power of 2, got %lld", align); return false; } - - // NOTE(bill): Success!!! - i64 custom_align = gb_clamp(align, 1, build_context.max_align); - if (custom_align < align) { - warning(node, "Custom alignment has been clamped to %lld from %lld", align, custom_align); - } - *align_ = custom_align; + *align_ = align; return true; } } |