# compiler: Remove uses of defaultFunctionAlignment\(\) in the frontend\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ef72b91ac2b96ba64a53b08a661e9ad83a828ee4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ef72b91ac2b96ba64a53b08a661e9ad83a828ee4

Requested commit: ef72b91ac2b96ba64a53b08a661e9ad83a828ee4

Commit: ef72b91ac2b96ba64a53b08a661e9ad83a828ee4

Tree: 03d0c78049441a867629d0534a98face6703e578

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: Remove uses of defaultFunctionAlignment() in the frontend.

minFunctionAlignment() is something we can know ahead of time for any given
target because it's a matter of ABI. However, defaultFunctionAlignment() is a
matter of optimization and every backend can do it differently depending on any
number of factors. For example, LLVM will base the choice on the CPU model in
its aarch64 backend. So just don't use this value in the frontend.

```

## Parents

- [d2f04e919c833288d5cf1efa97c25bbaae101168](https://git.cafe/gitcafe/zig/commit/d2f04e919c833288d5cf1efa97c25bbaae101168?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ef72b91ac2b96ba64a53b08a661e9ad83a828ee4?format=markdown)
