diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-25 11:10:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-25 11:10:28 +0200 |
| commit | 03d0e296cb8a8afb2bd81c030b31e96e6e2940c7 (patch) | |
| tree | f340a6c090dd562ec0d710573d66e1651ced5bd5 /src/Type.zig | |
| parent | 5769592cdda3c14a37b8c381219343052609cbbc (diff) | |
| parent | 6c1e306484530bfeaf26450fb83a70ff1c323bcd (diff) | |
| download | zig-03d0e296cb8a8afb2bd81c030b31e96e6e2940c7.tar.gz zig-03d0e296cb8a8afb2bd81c030b31e96e6e2940c7.zip | |
Merge pull request #21710 from alexrp/function-alignment
Some improvements to the compiler's handling of function alignment
Diffstat (limited to 'src/Type.zig')
| -rw-r--r-- | src/Type.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Type.zig b/src/Type.zig index 62997d2d93..1fa526a304 100644 --- a/src/Type.zig +++ b/src/Type.zig @@ -1027,7 +1027,7 @@ pub fn abiAlignmentInner( }, // represents machine code; not a pointer - .func_type => return .{ .scalar = target_util.defaultFunctionAlignment(target) }, + .func_type => return .{ .scalar = target_util.minFunctionAlignment(target) }, .simple_type => |t| switch (t) { .bool, |
