# LLVM 18 update: avoid passing vectors sometimes · gitcafe/zig

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

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

Visibility: public

Requested revision: 65bea9ac079e8d580f710b62f3c8cfcb3821d2cb

Requested commit: 65bea9ac079e8d580f710b62f3c8cfcb3821d2cb

Commit: 65bea9ac079e8d580f710b62f3c8cfcb3821d2cb

Tree: c0dc0933f6a0ca691f4a1e7055cb04fdae1b02b1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM 18 update: avoid passing vectors sometimes

LLVM now refuses to lower arguments and return values on x86 targets
when the total vector bit size is >= 512.

This code detects such a situation and uses byref instead of byval.

```

## Parents

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

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