# LLVM: fix extern functions missing attributes · gitcafe/zig

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

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

Visibility: public

Requested revision: fb81ba87620467de11db6b904741b4aafc7cb756

Requested commit: fb81ba87620467de11db6b904741b4aafc7cb756

Commit: fb81ba87620467de11db6b904741b4aafc7cb756

Tree: f67ac23cd5c4136521e4f16854a9a207b1673688

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: fix extern functions missing attributes

Extern functions were missing attributes such as "readonly" on
non-optional pointers, and "byval" which is required to match C ABI.

Follow-up from bf28765a975355c27558eaa86cf00ccb29b663a7.

closes #12683

```

## Parents

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

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